Answer Posted / hrindows@gmail.com
import java.util.Scanner;
class classname{
public methodname(){
//Scanner declaration
Scanner s_name = new Scanner(System.in);
//Use Scanner to take input
int val = s_name.nextInt();
}
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What exactly is methodology?
What is java Applet?
What is hashmap in java?
How do you define a parameter?
What is the program development process?
what is meant by abstract class?
What are advantages of exception handling in java?
Is alive and join method in java?
Explain the private protected method modifier?
What is a vector in java?
What is a line separator in java?
What are thread priorities and importance of thread priorities in java?
In how many ways we can create threads in java?
Can singleton class be cloned?
How are destructors defined in java?