Guest User

Rangga Start end

a guest
Dec 26th, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. class stringstartend
  2. {
  3. public static void main(String[] args)
  4. {
  5. String str = "Rangga Senatama Putra";
  6. System.out.println(str.startsWith("Rangga"));
  7. System.out.println(str.endsWith("Putra"));
  8. System.out.println(str.startsWith("Putra"));
  9. System.out.println(str.endsWith("Rangga"));
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment