import java.util.Scanner;
public class Test {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Введите любые 2 слова или фразу: ");
String phrase1 = sc.nextLine();
String phrase2 = sc.nextLine();
/*String phrase1 = "Hel";
String phrase1 = "fsdfsd";*/
System.out.println(phrase1 + " " + phrase2);
}
}
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
at g.Test.main(Test.java:4)