Considere el código Java para leer y procesar la entrada del usuario:
System.out.println("Introduce dos números:");
int num1 = sc.nextInt();
int num2 = sc.nextInt();
sc.nextLine(); // para limpiar el búfer
System.out.println("Introduce un texto:");
String texto = sc.nextLine();
System.out.println("Números: " + num1 + ", " + num2 + " Texto: " + texto);