a little doubt in this code:
System.out.print("Digite el primer entero:");
x = entrada.nextInt();
System.out.print("Digite el segundo entero:");
y = entrada.nextInt();
when you run out:
Digite el primer entero:4
Digite el segundo entero:6
My question is: should not I come out like this?:
Digite el primer entero:4Digite el segundo entero:6
since I am using System.out.print () and at no time am I indicating to the program that it should skip the line, how would it continue writing on the same line?