Questions tagged as 'java'

2
answers

How to load multiple records within a Combo?

I need to create a feature for a system that the person can select multiple records in a Combo, but the problem is that I'm loading more than 5000 records and the browser is crashing. Is there any way to create this without crashing? Type an...
asked by 12.03.2015 / 17:58
1
answer

breaking a file and storing in a vector - in Java

I'm trying to store in an array the values of a file with the csv extension. This extension comes from a file made in excel, and when saved in this extension the values are separated by ";". Throughthisimageyoucanalreadyimaginethefinalresultt...
asked by 07.03.2015 / 22:43
1
answer

How to use ListActivity with ActionBar?

You can only access the menu of a ListView that is without ActionBar by the menu key in the emulator. How to display it? Do you need to inflate by BaseAdapter ? ActivityofListView:publicclassListDespesasActivityextendsL...
asked by 19.01.2015 / 14:50
2
answers

Android sqlite order by com case

I need to sort a query like the example below, where, the searched text is 'un', first after the items that start with 'un'. This is what I need, order the output of the query, so that the items that begin with the text are the first of the resu...
asked by 27.06.2015 / 15:25
1
answer

How do I set a jcombobox in a PreparedStatement?

How do I make a jcombobox in this method? The Combobox would be in the type that the user is supposed to choose, I tried to make one but it did not work very well. And this method is in my main class and how do I set it to a PreparedStatement...
asked by 29.06.2015 / 22:57
1
answer

How to set a timeout for a given action in Java?

I would like to set a timeout for a given action on JSP pages, which should work with the following conditions below: When I click on a button eg "Traveling" , the page should somehow save start time and end time and say how long it takes...
asked by 23.06.2015 / 22:30
1
answer

Why is this code in infinite loop?

When I run it, it starts calculating the value of the bracelet infinitely. import java.util.Scanner; public class Sistema_Bichara{ public static void main(String args[]){ Scanner in = new Scanner(System.in); System.out.prin...
asked by 29.03.2015 / 16:01
2
answers

Strange page after adding Primefaces

After adding the dependencies of the Primefaces the project ignores my page /home.xhtml that is in the xml and shows a url /javax.faces.resource/theme.css.xhtml?ln=primefaces-aristo every time I run the project. Does anyone know...
asked by 24.03.2015 / 14:25
2
answers

For in an ArrayList of Java Objects

I'm studying Java and I'm having a problem with a code I wrote. Home I need to read the name and age of 3 people and say the name of the youngest and the name of the oldest. Home I know the best way for a large number of people would be to use t...
asked by 23.03.2015 / 14:45
1
answer

Iterate a String array inside an object

I built the following object: public class TableHelper { private String TABLE; private String[] COLUMNS; public TableHelper (String name, String[] columns){ this.TABLE = name; this.COLUMNS = columns; }...
asked by 13.01.2015 / 18:34