import java.util.Scanner;
public class String {
public static void main(String[] args) {
Scanner sc = new Scanner (System.in);
String cadena;
System.out.println("Introcuce un nombre");
cadena = sc.nextLine();
System.out.println("Buenos dias "+cadena);
}
}
Why does the program tell me the following?
String can not be converted to string