Questions tagged as 'java'

1
answer

Problem Related to graphs

I am doing this question in URI Online Judge . I'm trying with DFS, but by now I did not get anything. I put a variable to mark it up to the level it goes and when it reaches that level it comes back, but it is returning the wrong outputs...
asked by 14.09.2018 / 14:19
1
answer

Make MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA put the photo in an imageview

I needed to open the Android Camera App and take the photo. When taking the picture taken, put it in an imageview. My problem is, the client wants to be able to take the photo or choose from the gallery and I have seen that INTENT_ACTION_S...
asked by 28.09.2018 / 03:17
1
answer

Help with forEach in jsp

I'm trying to make an if in a jsp file, but I can not print all the values that are in the products table. For some reason my code only prints the first product and in the table I have 3 products. <c:forEach items="${products}"...
asked by 11.09.2018 / 21:55
0
answers

Tracing route and distance calculation - Google Maps

Hello, my question is in relation to the Haversine formula where, I have several geographical points (Latitude and Longitude) and when moving to the formula, the distance traveled is not returning the same result as the Google Maps site myself Re...
asked by 10.09.2018 / 20:16
0
answers

Read json with gson

I would like to read the JSON below with GSON, put each row in a POJO and add in a ArrayList . But I can not read JSON. {"user_id":"K4cXASVRZHM6l_t0l_kBzQ","name":"Rob","review_count":238,"friends":"7VQ46TLFWcJ9NC-Sf9r0cQ, GEbyCpz3QmMh23...
asked by 10.09.2018 / 21:29
1
answer

Return search HQL JAVA

I have the following function that searches the DB for a user that satisfies the login and password passed by parameter: public Usuario getUsuarioLogin(String pLogin, String pSenha) { String hql = " select u from Usuario u "...
asked by 21.10.2018 / 01:24
1
answer

How to convert JsonArray to ArrayList in android

Hello, how are you? I would like your help to be able to convert a JsonArray to ArrayList < > on android. I make a request that returns the following Json: {"normal":{"test_graph":{"VALORES (R$)":"valor"},"randons":[],"id":"","...
asked by 21.10.2018 / 03:45
0
answers

Problem with CRUD in Java using Mysql

In my DAO class, I have the method to insert into the database, however on my system screen I can only update the fields if I make a change in all fields. Example: my table has 4 fields and I only change 1, the update does not work by my butt...
asked by 20.10.2018 / 23:02
1
answer

Counter (Transaction) in firebase fatal error

I'm trying to make a counter, in fact I already used this idea to tell in firebase, which is a correct and safe way to do a counter for firebase. MutableData mData; //Contador +1 ao Firebase ao clicar na imageButton de Anuncios private...
asked by 15.09.2018 / 01:02
2
answers

How to retrieve the second text in a validation with AssertEquals

I have this code: AndI'mtryingtoretrievethetext"AutoTest". I made the following code here. WebElement idMenu = navegador.findElement(By.id("dropdown-menu-profile")); String valortesteAutomacao = idMenu.getText(); assertEquals("Teste_Aut...
asked by 15.09.2018 / 16:21