Created
June 5, 2014 21:12
-
-
Save cdduarte/144b19b58750ea833547 to your computer and use it in GitHub Desktop.
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
import java.util.Scanner; // allows use of Scanner class in java.util package | |
public class Copy | |
{ | |
public static void main( String[] args ) | |
{ | |
Scanner sysIn = new Scanner(System.in); | |
String s; | |
while ( sysIn.hasNextLine() ) { | |
s = sysIn.nextLine(); | |
System.out.println( s ); | |
} | |
sysIn.close(); | |
return; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment