Suppose: you have folowing string of numbers ....
"1 2 3 4 5 6 "
How to convert it to an integer?? The procedure will also be possible if your string exists of 10 numbers .... "1 2 3 4 5 6 7 8 9 10 "
Thanks
Hey,
I have following exception : java.lang.ClassCastException
I've read a file, and put the values in objects of a class.
I've put the objects in a combobox. Now I have a list with items .... that I can select but ....
I want to use a selected item, en put it in a string ...
How to do...
Suppose:
You have following arraylist-output:
4 AAAAAA
5 ZZZZZZ
2 DDDDDD
1 AAAAAA
3 AAAAAA
one row is one object:
Questions:
how to sort rows on numbers ascending?
==> output = 1 AAAAAA
2 DDDDDD
3 AAAAAA
4 AAAAAA...
Existing code below
Other questions:
+ Is it possible to sort this, for example on column 3?
+ What to do if you want remove one row in such an array?
+ What to do to refresh your list (see textArea in source code below...)?
file: persons.txt = a list of persons:
0 John
1 Mary
2 Jenny
3...
Suppose you have folowing persons.txt file with a list of persons:
0 John
1 Mary
2 Jenny
3 Michael
4 Jane
For the code below special thanks for prosper!!! to read this in 2 comboboxes.
My question now:
you selected one item in combobox1 and one item in combobox2. (Above...
Suppose you have folowing persons.txt file with a list of persons:
0 John
1 Mary
2 Jenny
3 Michael
4 Jane
How to read this in a combobox java-swing?
Thanks!!!!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.