Bookmark Topic Watch Topic
  • New Topic

string indexes  RSS feed

 
Moieen Khatri
Ranch Hand
Posts: 144
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,

I have this string
^ (..........)(................................) (...............)

which I want to manipulate.What I want is to find the index positions of all the opening and closing braces.The string index 0 position starts at ^ and the string ends at the last ).

Please can some one advice as how to implement it with the help of some code.

Thanks in advance
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Report post to moderator
Duplicate of this post
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!