Questions tagged as 'java'

2
answers

How to set up a timer in Android Studio to run tasks at constant intervals?

I'm developing a simple app with Android Studio and I need to create a timer to run some methods every 1 second. I tried the following but it did not work: int delay = 1000; int interval = 1000; Timer timer = new Timer(); timer.scheduleAtF...
asked by 31.05.2018 / 04:34
2
answers

Error: Exception in thread "main" java.lang.NullPointerException at pub.Pub.main (Pub.java:18)

I'm developing a program in java, I've looked at several places to know what I'm missing, everyone said that my variables are getting null value, but I already tried instantiating values in it, using methods, but nothing. The error is this "E...
asked by 06.05.2018 / 23:38
1
answer

How does an ArrayList ArrayList work? How to use an ArrayList ArrayList?

ArrayList<ArrayList<String>> ArrayList2; How does an ArrayList ArrayList work? How to use an ArrayList ArrayList?     
asked by 10.05.2018 / 04:57
1
answer

Error: can not locate or load main class

I'm trying to solve the following problem, I make a "Hello" in Netbeans and it's compiling, I do or in Notepad ++, I can create the class with javac Oi.java, but when I put java Hi, the following error appears:    "Error: Can not find or load...
asked by 31.05.2018 / 18:33
2
answers

How is the syntax of generics in C # compared to Java?

I am a Java developer studying C # and I came across the following difference between the two languages:    link       Generics       Generics are much less fiddly in C #. Partially because they are both compile-time and run-time concept....
asked by 18.05.2018 / 20:20
3
answers

Relationship between two tables

Hello, I would like to know how to create a relationship between two tables, Time and Start, and in the beginning I should put the columns: time1, placar1, time2, placar2, and a date. But my question is whether I need to inform the teams fields i...
asked by 17.05.2018 / 16:52
1
answer

How to trigger a method when finished editing a column of type Integer in JTable

I need to call a method that shows the user a message. This method must be called just as the user finishes editing a JTable column of type Integer and the user has not entered an integer. That is, the method should be called the moment th...
asked by 18.05.2018 / 22:04
2
answers

App crashes after finishing loop in Thread

Hello, I made an app in Android Studio that breaks the sentences into words and stores them in a vector using the split. Then I made a loop of repetition using the while to display it word for word, but there was a problem, the application freez...
asked by 01.05.2018 / 21:26
2
answers

Automatic search of user address

Any method of automatic address search from the user's current location? You do not need to fill in the address fields. Entering the zip code or clicking an address search button.     
asked by 19.04.2018 / 06:49
1
answer

Validation of CheckBox and RadioButton [closed]

How to validate and return a message if the CheckBox and RadioButton components are not selected in an application? JAVA     
asked by 19.04.2018 / 09:22