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
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply 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: 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
    
  15

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to hide characters in a string
 
Similar Threads
Problem in Password encryption
How to open a hidden command window
show/hide formfields
JTable
Overcome hiding method for static--pls help