943,606 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 2601
  • Java RSS
Nov 25th, 2008
0

Skip space characters

Expand Post »
hi
can anybody tell me how ti skip blank spaces in java.Is there any function for that.Or we have to write code for that.

thanks
Similar Threads
Reputation Points: 7
Solved Threads: 0
Newbie Poster
laki234 is offline Offline
10 posts
since Nov 2008
Nov 25th, 2008
0

Re: help me

You have to write code for everything in Java - that's pretty much the point. What you write really depends on what you are trying to do, which you failed to adequately explain. What do you want to "skip blank spaces" in? What are you wanting to do with the "not blank spaces" remainder?
Moderator
Featured Poster
Reputation Points: 3239
Solved Threads: 838
Posting Genius
Ezzaral is offline Offline
6,756 posts
since May 2007
Nov 25th, 2008
0

Re: help me

Look into Character.isSpaceChar(char ch)
Super Moderator
Featured Poster
Reputation Points: 3233
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,871 posts
since Jun 2006
Nov 25th, 2008
0

Re: help me

Or split(), regex, indexOf(), trim()... all of those could be useful, depending on the intent.
Moderator
Featured Poster
Reputation Points: 3239
Solved Threads: 838
Posting Genius
Ezzaral is offline Offline
6,756 posts
since May 2007
Nov 25th, 2008
0

Re: help me

even using indexOf(" "); propably could help you out.
but what do you mean with "skip" read over them, erase them out of the String, ... ?
Reputation Points: 919
Solved Threads: 354
Nearly a Posting Maven
stultuske is online now Online
2,475 posts
since Jan 2007
Nov 27th, 2008
0

Re: help me

Next time use another title. The rule says titles such as 'help me' and the like are not encouraged.
Reputation Points: 7
Solved Threads: 0
Light Poster
Obeledeveloper is offline Offline
44 posts
since Aug 2008
Nov 27th, 2008
0

Re: help me

Good idea; edited.
Super Moderator
Featured Poster
Reputation Points: 3233
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,871 posts
since Jun 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: java program to send sms to tomcat server
Next Thread in Java Forum Timeline: Dreamweaver





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC