Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- class Main {
- public static void main(String[] args) {
- String inputStream;
- Scanner kbrd = new Scanner(System.in);
- System.out.print("Введите произвольный текст и нажмите Enter ");
- inputStream = kbrd.nextLine();
- System.out.println("Вы ввели: " + inputStream);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement