Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to define the number of spaces in a string variable

807600Dec 2 2007 — edited Dec 2 2007
Hey All,

I have just started java in the past 2 months (and loving it!) and I am currently working on my 2nd Assignment.

I need to know how I can define the number of space charecters in a string.

Does this make sense at all?

Thanks in advance..

techguy
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 30 2007
Added on Dec 2 2007
4 comments
558 views