Advertisement
Guest User

bou

a guest
Jan 16th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. Scanner scan = new Scanner(System.in);
  2.  
  3. String line;
  4. while (true) {
  5. if ((line = reader.readLine()) != null) {
  6. System.out.println("Bou: " + line);
  7. } else {
  8. String tmp = scan.next();
  9. System.out.println("Ja: " + tmp);
  10. writer.println(tmp);
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement