• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to hide characters in a string

 
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
Saloon Keeper
Posts: 3159
33
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