Created
September 22, 2013 09:53
-
-
Save omatt/6658507 to your computer and use it in GitHub Desktop.
Data readers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** 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()); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** 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