Guest User

Untitled

a guest
Mar 20th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. ax "hello"
  2.  
  3. else if(next.equalsIgnoreCase("ax")) {
  4. next = s.nextLine();
  5.  
  6. if(next.endsWith(" ") || next.endsWith("t")) {
  7.  
  8. if(next.startsWith(""") && next.endsWith(""")) {
  9. ax = next;
  10. }
  11.  
  12. } else if(!next.endsWith(""")) {
  13. System.out.println(REDBACKG + "Error in line " + line + ": String should end with quotation mark" + RESETBACKG);
  14. System.exit(0);
  15.  
  16. } else if(!next.startsWith(""")) {
  17. System.out.println(REDBACKG + "Error in line " + line + ": String should start with quotation mark " + RESETBACKG);
  18. System.exit(0);
  19. }
  20.  
  21. else {
  22. ax = next;
  23. }
  24. }
Add Comment
Please, Sign In to add comment