Questions tagged as 'java'

1
answer

Assigning Rows of a Document to a String Vector

I'm trying to try to assign to a string vector certain lines of document, the content of the document is this:    3   50   5,80,0   15,5,1   12,30,0 I want, from the third row, each row to be stored in a certain index of a String vect...
asked by 06.06.2017 / 16:43
1
answer

Error converting types

I'm doing a job for college that consists of creating an array of buildings based on some rules that are provided by txt. The code gives an error and I do not know what is happening. A detail that when I comment the line valor = Integer.pa...
asked by 07.06.2017 / 02:54
1
answer

reflect.InvocationTargetException

Hello, I'm trying to make an application that runs a song infinitely, but when the user clicks a button the music stops, this is my code public void tocar() { relogio = new Timeline(new KeyFrame(Duration.ZERO, e -> { clip.play();...
asked by 24.06.2017 / 18:21
0
answers

Redirect page JSP

When registering the "object" in a JSP, it calls a command that in the end calls another one that does the redirection to "list Objects". RequestDispatcher dispatcher = request.getRequestDispatcher("/controller.do?command=ListarOperacoes")...
asked by 24.06.2017 / 04:04
0
answers

Could not find or load main class

I tried to execute my project NetBeans 8.1 and of this error shown in the inserted image, I have java and all its componets already installed, the error arose after denying execute a form, giving memory error information and then no longer...
asked by 24.06.2017 / 03:52
0
answers

Sonar-runner does not upa the files

I installed local sonar on my ubuntu and am trying to upload some files to it. I configured the sonar-project.properties as follows: sonar.projectKey=your:project-key sonar.projectName=Project Supermercado sonar.projectVersion=1.0 sonar.lang...
asked by 12.06.2017 / 02:27
0
answers

Dynamic List / Chaining Help in Java

I am having a cruel difficulty with regard to a java method. To delimit the position of the node, I only have the getProximo () method as follows, so I can not delete the node passed as a parameter, not excluding all consecutive ones. package...
asked by 04.06.2017 / 13:44
0
answers

Conversion between Decimal and Binary in a vector, with elements generated randomly

I need to make a program where 10 randomly generated numbers that are stored in a vector are converted to binary and shown to the user. Not necessarily need to be stored in a vector. I just can not do a loop doing this. I was able to put...
asked by 04.06.2017 / 17:56
1
answer

Android & Firebase Async tasks

I have a class Java that I overwritten the toString() method inside this method before returning I consult the fireBase and fill in an object. My problem is the return of toString() ends up running before the firebase...
asked by 13.06.2017 / 16:29
1
answer

How to get more accuracy in GPS using google location on android

In my project, I need to get a current user location and address and constantly update my position because of greater accuracy. The problem is that when I got the location (Latitude and Longitude), using the Geocode class to get the address and...
asked by 13.06.2017 / 18:11