java consola code example
Example: java consola
package holamundo;
import java.util.Scanner;
import javax.swing.JOptionPane;
public class HolaMundo {
public static void main(String[] args) {
Scanner escaner = new Scanner(System.in);
System.out.print("Dime un número: ");
int entero = escaner.nextInt();
System.out.println(entero);
}
}