Advertisement
Guest User

fwaef

a guest
Nov 13th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.50 KB | None | 0 0
  1. while (input.hasNext()) {
  2.         String S = input.next();
  3.         if (S.startsWith("<") && S.endsWith(">")) {
  4.             S.length();
  5.             S.replace("-", " ");
  6.             S.replace("<", "");
  7.             S.replace(">", ":");
  8.             S.substring(2, S.length() - 2);
  9.             System.out.print("Please type an " + S +" ");
  10.             console.nextLine();
  11.         }
  12.        
  13.       }
  14.         while (input.hasNextLine()) {
  15.          String text = input.nextLine();
  16.          output.println(text);
  17.        
  18.       }
  19.    }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement