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?
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
Look into Character.isSpaceChar(char ch)
~s.o.s~
Failure as a human
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
Or split(), regex, indexOf(), trim()... all of those could be useful, depending on the intent.
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
even using indexOf(" "); propably could help you out.
but what do you mean with "skip" read over them, erase them out of the String, ... ?
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
~s.o.s~
Failure as a human
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734