• Post Reply Bookmark Topic Watch Topic
  • New Topic

Determining if a character is in a string?  RSS feed

 
Sean Gnau
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey all, I'm in the middle of finishing up a program, and I can't even remember the code that you use to determine if a character (in this case "-") is in the string... any help?

Thanks in advance
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you go through the methods in the API for java.lang.String?
 
Sean Gnau
Greenhorn
Posts: 6
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did actually, and I just managed to figure out what was wrong with a bit of help.

Thanks for your reply though (It turns out the problem with my coding wasn't what I thought it was)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!