fork download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class Ideone {
  6. public static void main (String[] args) throws java.lang.Exception {
  7. Scanner input = new Scanner(System.in);
  8.  
  9. String user;
  10. System.out.print("say something funny");
  11. user = input.nextLine();
  12.  
  13. System.out.println("this is what you said: " + user);
  14. }
  15. }
Success #stdin #stdout 0.18s 60808KB
stdin
hi
stdout
say something funnythis is what you said: hi