Advertisement
kosmontin

9

Jan 18th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. class Main {
  4.  
  5.     public static void main(String[] args) {
  6.         String inputStream;
  7.         Scanner kbrd = new Scanner(System.in);
  8.         System.out.print("Введите произвольный текст и нажмите Enter ");
  9.         inputStream = kbrd.nextLine();
  10.         System.out.println("Вы ввели: " + inputStream);
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement