Skip to content

Instantly share code, notes, and snippets.

@thetekst
Created February 18, 2011 07:56
Show Gist options
  • Save thetekst/833397 to your computer and use it in GitHub Desktop.
Save thetekst/833397 to your computer and use it in GitHub Desktop.
1.1 Java home
/*Напишите программу «повторюшку», которая вводит
строчку с клавиатуры, а затем её же и выводит.*/
import java.util.Scanner;
public class HelloWorld {
/**
* @param args
*/
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String s = scan.nextLine();
System.out.println(s);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment