Skip to content

Instantly share code, notes, and snippets.

@omatt
Created September 22, 2013 09:53
Show Gist options
  • Save omatt/6658507 to your computer and use it in GitHub Desktop.
Save omatt/6658507 to your computer and use it in GitHub Desktop.
Data readers
/** Java BufferedReader **/
import java.io.*;
// initialize class
{
public static void main(String [] args)throws IOException{
BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));
String inputString = buffer.readLine();
int inputInt = Integer.parseInt(buffer.readLine());
}
}
/** Java Scanner util **/
import java.util.scanner
// initialize class
{
public static void main(String [] args){
Scanner scan = new Scanner(System.in);
String inputString = scan.nextLine();
int inputInt = scan.nextInt();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment