Questions tagged as 'java'

0
answers

Upload file from Angular to Java REST

I am trying to upload an FILE (image or pdf, I have not placed a restriction yet) from Angular. to a REST service built in Java, and java I get their data, the original name of the image, the size of the image, but the file is not going up .....
asked by 14.12.2018 / 16:21
0
answers

How to fill the JFrame fields stored in MySQL using Hibernate?

my question is how can I fill in the fields of my JFrame with the data stored in my bbdd using hibernate? That is, I select a row of my JTable , I get its id and by clicking on a edit button there will be a form that will have a...
asked by 14.12.2018 / 14:23
2
answers

How to get out of a loop with a counter in Java?

I have made a small program in which a password must be entered and if it reaches a maximum of three failed attempts, the program ends without further ado. My problem is that with my current code I can not get anywhere, the loop repeats infinite...
asked by 14.12.2018 / 19:37
1
answer

TXT input UTF-8, output TXT UTF-8. Netbeans - Run - perfect files, using the jar - rare characters. What can be?

I created an application that reads 2 text files (txt), in one there is Russian text and in the other Spanish text. (Both txt in UTF-8) Then arm a single txt with both texts. The output of the / txt is also / are UTF-8. If I run the progra...
asked by 03.06.2018 / 20:00
0
answers

Memorama game - Compare 2 buttons

I already have the position of the arrangement but I can not compare. As if it were a memorama I must press a button and show me the number and pressing another compare them and they are the same to disable them and if they are not to enable the...
asked by 03.06.2018 / 01:20
6
answers

What is the solution to all present, past and future NullPointerException errors?

I have my Java program and I get a NullPointerException and I have seen other questions but they are from people with other programs and it does not work for my program and I want to leave here the 2,000 lines of my program so that you solve the...
asked by 08.01.2017 / 18:54
2
answers

How to use the variable of one method in another method?

I want to use the previously assigned latitude and longitude variables in the onLocationChanged (Location location) method and use them in the method Method () Method where I want to get latitude and longitude @Override public void onLocati...
asked by 02.05.2018 / 15:51
1
answer

Use more than one delimiter with StringTokenizer

I would like to know how I could in java eclipse using the StringTokenizer class to declare more than 1 delimiter so that I can separate the String in tokes. Thanks in advance     
asked by 14.04.2018 / 21:29
1
answer

Problem with ClassCastException

I'm having a problem with reading / writing objects in java using ObjectInputStream. The case is the following, I want to store in a file a series of objects of different type (different classes that inherit from it). But the point is that I wan...
asked by 12.04.2018 / 21:50
1
answer

Read a csv file as an array in java

I've been experimenting with the com.opencsv and javacsv libraries but I always run into some pitfall with these packages: I can not write the first row, I can not read columns, among other problems. My question is: Is there a package that allow...
asked by 28.03.2018 / 05:31