-2
I’m using a code that uses Scanner
(I named after input
) and uses while(input.hasNextLine())
, but he keeps asking for input, I know he has a specific command for it (something like /n
) but I can’t remember.
Could someone help me?
-2
I’m using a code that uses Scanner
(I named after input
) and uses while(input.hasNextLine())
, but he keeps asking for input, I know he has a specific command for it (something like /n
) but I can’t remember.
Could someone help me?
0
Hello you can do something like this:
Scanner ler = new Scanner(System.in);
//seu código de entrada
if (ler.equals("")) {
ler.close();
}
}
Browser other questions tagged java
You are not signed in. Login or sign up in order to post.
Present your code to see the problem.
– user28595