aspose file tools*
The moose likes Beginning Java and the fly likes How to hide characters in a string Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to hide characters in a string" Watch "How to hide characters in a string" New topic
Author

How to hide characters in a string

Ron Ingram
Ranch Hand

Joined: Mar 11, 2011
Posts: 63
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

Joined: Sep 08, 2007
Posts: 3056
    
  33

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to hide characters in a string
 
Similar Threads
show/hide formfields
Overcome hiding method for static--pls help
How to open a hidden command window
JTable
Problem in Password encryption