I'm trying to get the values from a ListView to send them to another screen by clicking on the item.
So I have the following code:
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {...
I'm not able to display the sql database date type Date in JTable, the date appears like this:
Iusethefollowingmethodtocallthetabledata:publicArrayList<Alunos>read(){PreparedStatementstmt=null;ResultSetrs=null;ArrayList<Aluno...
I'm trying to resolve an issue in the Online Judge URI in Java however I'm remarking 5 % error, and from what I've studied is being caused by the fact that the precision of the variables in C ++ and Java is different. I've tried everything to...
The final java keyword for variables means that it will only get a value once, right?
If I have multiple variables in a function and I know they should not receive any value later, is it good to declare them as "final"?
void foo() {
final i...
import java.util.Arrays;
public class OrdenaArgumentos {
String [] nomes = new String []{ " rafael cosentino ", " jonas hirata ", " marcelo martins "};
java.util.Arrays.sort (nomes);
for ( String nome : nomes ) {
System . out....
How can I do when when I press a JMenuItem it shows a window where I would have to insert, for example, a date and select from a pair of checkboxes?
In short, how do I popup a new JFrame ?
Thanks for the help!
So, I have a game of questions and answers. Where each question has 4 answers (placed on the button labels).
How do I get the text of the button clicked to compare to a String?
This is the error I believe is easy for those who handle Java but as I am learning I still have not identified the problem.
GRAVE: java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: . nea...
I need some help
I have a servlet that is returning an array object p with a select query.
I would like to know how to display this object in my jsp in HTML input fields