View Single Post
  #1  
Old 02-01-2011, 01:10 AM
Java Java is offline
Senior Member
 
Join Date: Jun 2009
Posts: 8,402
Default Space between two string

How do i count space between two string in java for ex. String s = "This is my car"; i have to count number of space between this and is , is and my, and my and car.
__________________
Java
domain name forum
Reply With Quote