Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scanner scan = new Scanner(System.in);
- String line;
- while (true) {
- if ((line = reader.readLine()) != null) {
- System.out.println("Bou: " + line);
- } else {
- String tmp = scan.next();
- System.out.println("Ja: " + tmp);
- writer.println(tmp);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement