Questions tagged as 'java'

2
answers

Delete duplicate values in a Map / HashMap and get the most frequent value

I have tried to delete keys and values of a map but I have not yet achieved it, meanwhile I have created another map . It is required to find the words with the most appearances in a sentence. (I do not know what words there may...
asked by 30.06.2017 / 17:53
2
answers

Unknown error, Problem when compiling related to JDK

I am finishing a project in Intellij for the university, that project I left in stand by while I continued with other commitments. However, a few weeks ago I installed a framework and when I did not run correctly I uninstalled and reinsta...
asked by 11.05.2017 / 22:53
1
answer

Use different strings.xml files regardless of Locale

I would like to know if, without changing the Locale of the app, there is some possibility to choose which file of strings.xml to use in the app. For example, if I have a file of strings.xml and when translating this I ha...
asked by 25.07.2017 / 10:01
1
answer

Imageview download image with Glide or Picasso

   Is Glide or Picasso used with local resources? I have an imageview in a recycler that is also a shared item with an activity detail.    How do I upload that image in the imageview with Glide or Picasso?     
asked by 25.05.2017 / 13:11
1
answer

Display a parameter of my application on android with System.out.print

Hi, I have made a small application on android that is installed, but now I wanted to add an option so that I can use a domain instead of an IP. So to check if I really get the IP of my domain what I do is: System.out.println("EJEMPLO"+giriAdd...
asked by 25.05.2017 / 19:57
0
answers

Saving changes in Fragments through an Interface

I have recently arrived at the world of programming and I am with a project of Android . I have two Fragments in a Activity in one of them you have to be listening if there is any change in the data that the user enters, if s...
asked by 26.05.2017 / 14:00
0
answers

NullPointerException when accessing values from a HashMap

I'm trying to access the values of a HashMap<> but the application stops when from a custom adapter I try to take the values I passed to the HashMap , showing this message in the logcat:    E / AndroidRuntime: FATAL EXCEPT...
asked by 11.03.2018 / 07:57
2
answers

Java - Problem with conditional

I have the following code: public class UnitatFamiliar extends Thread { Comandament comandament; public UnitatFamiliar(Comandament c) { comandament = c; } @Override public void run() { //Agafa el coma...
asked by 08.03.2018 / 16:00
0
answers

Run RestTemplate with an external resource on HTTPS

I'm trying to consume a public endpoint that is available in both http and SSL, https://jsonplaceholder.typicode.com/posts/1 which returns a very simple json. I have configured my RestTemplate as follows: @Configuration public class...
asked by 09.03.2018 / 13:43
1
answer

JPA @ManyToMany with additional column

I am trying to connect two tables with a many to many relationship but, in the third table that relates them, apart from the id of each of the other two tables, there is a third field and I do not know how to indicate this third field. I have...
asked by 30.07.2018 / 00:09