![sin imagen de perfil sin imagen de perfil](/img/anonymouse.png)
Salto de linea nextline
Publicado por gaston (1 intervención) el 19/08/2017 00:40:58
Hola tengo un pequeño problemita con este codigo al ejecutarlo por primera vez en la consola no tengo problema pero al siguiente me salta una linea no me deja cargar el nombre y arranca del apellido alguna ayuda para solucionarlo?
Consola al ejecutarlo
run:
Ingrese Nombre:
fafae
Ingrese Apellido:
efaf
Ingrese Direccion:
afefa
Ingrese Email:
seaf
Ingrese Telefono:
352325
Ingrese Dni:
35345
---------------*--------------
Ingrese Nombre: ESTA ENTRADA NO ME DEJA CARGARLAAA!!
Ingrese Apellido:
sadfsag
Ingrese Direccion:
gsgaa
Ingrese Email:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import java.util.Scanner;
/**
*
* @author gasto
*/
public class Test
{
public static void main(String[] args)
{
Persona Personaa = new Persona();
Scanner teclado = new Scanner (System.in);
Personaa.Nombre();
String Nombre1 = teclado.nextLine();
Personaa.Apellido();
String Apellido1 = teclado.nextLine();
Personaa.Direcion();
String Direccion1 = teclado.nextLine();
Personaa.Email();
String Email1 = teclado.nextLine();
Personaa.Telefono();
int Telefono1 = teclado.nextInt();
Personaa.Dni();
int Dni1 = teclado.nextInt();
Consola al ejecutarlo
run:
Ingrese Nombre:
fafae
Ingrese Apellido:
efaf
Ingrese Direccion:
afefa
Ingrese Email:
seaf
Ingrese Telefono:
352325
Ingrese Dni:
35345
---------------*--------------
Ingrese Nombre: ESTA ENTRADA NO ME DEJA CARGARLAAA!!
Ingrese Apellido:
sadfsag
Ingrese Direccion:
gsgaa
Ingrese Email:
Valora esta pregunta
![Me gusta: Está pregunta es útil y esta clara Me gusta: Está pregunta es útil y esta clara](/img/img.png?11.51)
![NO me gusta: Está pregunta no esta clara o no es útil No me gusta: Está pregunta no esta clara o no es útil](/img/img.png?11.51)
0