• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Test a specific char in a string

 
Robert Brown
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok I have a few strings however I want to test each character, I know I need to run it through a loop and all but how can I look at each individual character if it is in a string?
 
Garrett Rowe
Ranch Hand
Posts: 1296
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you look at the documentation for java.lang.String, you should find a method that returns the char at a specified index in the String
 
Robert Brown
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much just what I needed
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic