fork(1) download
  1. import java.io.BufferedReader;
  2. import java.io.IOException;
  3. import java.io.InputStreamReader;
  4.  
  5.  
  6. class Pars {
  7.  
  8. public static void main(String[] args) {
  9.  
  10. String text = "", newText ="";
  11.  
  12. System.in));
  13. System.out.println("Enter text: ");
  14. try {
  15. while ((text = inputText.readLine()) != null) {
  16. newText += text;
  17.  
  18.  
  19.  
  20. System.out.println(newText);
  21.  
  22. }
  23. } catch (IOException e) {
  24. e.printStackTrace();
  25. }
  26.  
  27. }
  28.  
  29. }
  30.  
Success #stdin #stdout 0.11s 320256KB
stdin
Standard input is empty
stdout
Enter text: