Questions tagged as 'java'

0
answers

Search in Width and Depth in a graph [closed]

I need to implement a system of visits, and the search in Width (graphs). How to proceed? [EDIT] I would host to know the best way to make this algorithm work for Grafo as it is currently only working specifically for trees with no direction....
asked by 11.09.2017 / 15:53
1
answer

android studio: AVD Nexus_5 is already running

I can not run the AVD because the following message appears: I'vetriedtodeletethefolderbelow: Does anyone know what I should do?     
asked by 12.09.2017 / 22:32
1
answer

I can not generate this second vector

Type a program that loads a vector with 10 integers and sorts it in ascending order using the bubble sort method. The program should generate a second vector without the repeated numbers. package com.bubble.sort; import java.util.Scanner;...
asked by 13.09.2017 / 18:26
2
answers

Json created incomplete

Next staff was experiencing a loop problem in my project when creating the Json application looping. I was able to solve the loop problem with the annotation @JsonManagedReference, @JsonBackReference. But an Incomplete Json is being created:...
asked by 26.09.2017 / 23:56
2
answers

FXML file has stopped opening with scene builder

Until yesterday when I was stirring, I would open a file. So now I can not open my file. The other fxml of the project usually open however the one in specific appears the icon there below that is open but if I click, it does not open any window...
asked by 26.09.2017 / 15:54
1
answer

p: inputText is not updating

I have in the following code, a form that works for both change and to add an entity. The logic is as follows, I have a alteracao variable. If alteracao == true the form will behave to change If alteracao == false t...
asked by 29.09.2017 / 19:45
0
answers

Java - Mockito's When () function. ThenReturn ()

@Mock RequestUtils requestUtils; @Before public void init() throws IOException, ClassNotFoundException { MockitoAnnotations.initMocks(this); HtmlPage paginaPesquisa = requestUtils.executarPOST(anyObject(),anyObject());...
asked by 29.09.2017 / 15:05
0
answers

How to execute (interact) commands prompt by Java? (Linux and Windows)

Hey guys. I need to develop a java program that runs commands like it was in promt / cmd, and somehow even interact with it. Do you know when we run some kind of command at the prompt and it gives an answer or asks for a password? Exactly this,...
asked by 29.09.2017 / 20:49
0
answers

Incorrect display of characters in html / jsp page

I was designing a website for academic purposes, but I came across a display error. My html / jsp pages are not displaying the accented texts correctly when retrieving from the database. All are UTF-8 charset in the meta tag and lang pt-br in th...
asked by 06.09.2017 / 19:26
1
answer

Java Web + Ajax + Servlets

I'm having a hard time trying to get the date in Ajax. When I run the code, I get the 200 status and in network in the Chrome debugger I can see the return, but I can not do anything else with the date, like giving an alert or anything usef...
asked by 08.09.2017 / 05:38