0
import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner sourav = new Scanne
this code is taking the input but not giving output. why?
13 Réponses
+ 1
Could it be that you cut something off?
+ 1
In this code, you only create a new scanner instance
+ 1
Glad I could help😊
0
like?
0
also when trying to run any program on eclipse a message pops out saying the selection cannot be launched and there are no recent launches. plss help me out
0
can you show your whole code please?
0
what is a while code? I'm new to java.
0
whole
0
import java.util.Scanner ;
public class Program
{
public static void main(String[] args) {
scanner tuna = new Scanner (System.in);
System.out.println(tuna.nextline()) ;
}
}
0
It's Scanner tuna, not scanner tuna.
0
And it's nextLine ()
0
hey thanks a lot... didn't know block letter matter that much. 😅