• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to hide characters in a string  RSS feed

 
Ron Ingram
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3185
34
Google App Engine Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would just use rs.getString(5)

Can you please post correct code? I think rs- is a reference to ResultSet.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!