Skip to content

Instantly share code, notes, and snippets.

@Baekjoon
Created April 17, 2015 07:32
Show Gist options
  • Save Baekjoon/5a5e0078722b21fcff06 to your computer and use it in GitHub Desktop.
Save Baekjoon/5a5e0078722b21fcff06 to your computer and use it in GitHub Desktop.
java scanner
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
String s = sc.nextLine();
System.out.println(n + "\n" + s);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment