Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- boolean p=str.contains("R");
- if(p)
- System.out.println("string contains the char 'R'");
- else
- System.out.println("string does not contains the char 'R'");
- boolean p = str.toUpperCase().contains("R");
Add Comment
Please, Sign In to add comment