fork download
  1. import java.util.*;
  2. public class Main {
  3. public static void main(String[] args){
  4. Scanner sc = new Scanner(System.in);
  5. System.out.println("Hello " + sc.next() + "!");
  6. }
  7. }
Success #stdin #stdout 0.13s 29200KB
stdin
World
stdout
Hello World!