Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ax "hello"
- else if(next.equalsIgnoreCase("ax")) {
- next = s.nextLine();
- if(next.endsWith(" ") || next.endsWith("t")) {
- if(next.startsWith(""") && next.endsWith(""")) {
- ax = next;
- }
- } else if(!next.endsWith(""")) {
- System.out.println(REDBACKG + "Error in line " + line + ": String should end with quotation mark" + RESETBACKG);
- System.exit(0);
- } else if(!next.startsWith(""")) {
- System.out.println(REDBACKG + "Error in line " + line + ": String should start with quotation mark " + RESETBACKG);
- System.exit(0);
- }
- else {
- ax = next;
- }
- }
Add Comment
Please, Sign In to add comment