Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by javaken

  1. javaken

    From string to integer .....

    What if your inputstring is null??? Because it becomes from a object .... java.lang.NumberFormatException: For input string: "null" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source)
  2. javaken

    To put the result of a Vector in a string???

    a piece of my code ... XManager is a class which me return a collection Another class use this ....: Collection entries = XManager.INSTANCE.findX(ThingsFrom); Iterator iter = entries.iterator(); while (iter.hasNext()){ object = (Object)iter.next(); Vector row = new Vector()...
  3. javaken

    To put the result of a Vector in a string???

    Suppose the result of your vector gives you 2 rows .... Is it possible to make 1 string of this result, also if you have 3 rows or more .... I work with a linked list, collection ... Result: one column in my case has 2 or more rows ... 1 2 I want to make of this a string = "1 2 " or "1 2 3...
  4. javaken

    To put the result of a Vector in a string???

    Is this possible? Thanks
  5. javaken

    From string to integer .....

    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
  6. javaken

    Sort, remove objects in a arraylist?

    Hey, Who can give a simplified version of code to do this? Sorry, but I have lost the key .... °) or in other words I have problems to do this .... Thanks [upsidedown]
  7. javaken

    JTextArea

    Hey, How to clear the contents of a JTextArea??? Thanks [pipe]
  8. javaken

    java.lang.ClassCastException

    Sedj, Thanks for the quick hack .. Greetz [smile]
  9. javaken

    java.lang.ClassCastException

    String s = (String)thingsComboBox.getSelectedItem(); gives an error In class things I have: ID (== int) + thing (==string) = one object object is sitting in my combobox. How can I get the contents of thing1 when item 1 in my comboBox is selected. You to put it in a string??? Thanks ...
  10. javaken

    java.lang.ClassCastException

    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...
  11. javaken

    Sort, remove objects in a arraylist?

    Suppose you have a class X: class X produce an object exists of 2 elements: ID + Contents ==> each object is formed by this 2 elements ... ==> in code you have 2 classes ... You have following arraylist-output: 4 AAAAAA 4 = ID AAAAAA = element Contents 5...
  12. javaken

    Read line from text file into an array

    Your code/solution was very nice Sedj!!!!!! I complete it because it was so nice ! It's above so short. Thanks Sedj!!!! [bigsmile]
  13. javaken

    Sort, remove objects in a arraylist?

    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...
  14. javaken

    Read line from text file into an array

    This will be something like this ...... Greetings [dazed] /* * Created on 21-mei-2004 * */ import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; public class ReadingFile { public ReadingFile(String...
  15. javaken

    Casting from integer to string?

    In Vb.net = DirectCast ..... In Java ? Thanks!!! [smile]

Part and Inventory Search

Back
Top