Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (input.hasNext()) {
- String S = input.next();
- if (S.startsWith("<") && S.endsWith(">")) {
- S.length();
- S.replace("-", " ");
- S.replace("<", "");
- S.replace(">", ":");
- S.substring(2, S.length() - 2);
- System.out.print("Please type an " + S +" ");
- console.nextLine();
- }
- }
- while (input.hasNextLine()) {
- String text = input.nextLine();
- output.println(text);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement