- Forum: Coding and Programming
- Thread: help with java
The String class has a method called "contains" which checks to see if a the string has a specific character or sequence of characters. The syntax would be something similar to
Code:
if(yourString.contains("a")){
(do...