User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 391,588 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,668 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 228 | Replies: 1
Reply
Join Date: Jan 2008
Posts: 36
Reputation: ajithraj is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
ajithraj ajithraj is offline Offline
Light Poster

invisible characters

  #1  
Jun 12th, 2008
Hello...

I need to add a special character to a string as follows..

String ok = "I am the man"+specialChar;

However, when I print "ok" later,without taking substring, I just want to see

"I am the man "

with the special character but will be invisible and will have just a space.

The reason I want to do this is because I want to distinguish the regular strings with the strings invisible special character.

How can I do this? Any help would be greatly appreciated.

Thanks!
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2007
Location: Greece
Posts: 435
Reputation: javaAddict is on a distinguished road 
Rep Power: 1
Solved Threads: 43
javaAddict's Avatar
javaAddict javaAddict is offline Offline
Posting Pro in Training

Re: invisible characters

  #2  
Jun 12th, 2008
Will String.replaceAll do for you?
I AM the 12th CYLON
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Java Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Java Forum

All times are GMT -4. The time now is 11:05 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC