| Author |
How to hide characters in a string
|
Ron Ingram
Ranch Hand
Joined: Mar 11, 2011
Posts: 60
|
|
Hello,
String storeVal = rs.getString(5)+","+rs.getInt(2);
= "stringValue,10"
I want to add this value to populate a java.awt.Choice box. However, I want to hide the ",10". Any ideas?
|
 |
Mohamed Sanaulla
Bartender
Joined: Sep 08, 2007
Posts: 2925
|
|
I would just use rs.getString(5)
Can you please post correct code? I think rs- is a reference to ResultSet.
|
Mohamed Sanaulla | My Blog
|
 |
 |
|
|
subject: How to hide characters in a string
|
|
|