Консоль журнал Java
System.out.println("String")
Muddy Mongoose
System.out.println("String")
try(Scanner scan=new Scanner(System.in)){
//read from console
String textRead=scan.nextLine();
//write to console
System.out.println(textRead);
}