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 is Java Annotations?
What is considered an anti pattern?
how to open and edit XML file in Weblogic???
explain copyonwritearraylist and when do we use copyonwritearraylist?
What is r in java?
What is bubble sort in java?
What is JFC?
What are different types of constants?
What is parsing a string?
Difference between object instantiation and construction ?
What is a heavyweight component?
What does those terms actually mean included in the j.d.k i.6?
Explain aggregation in java?
What is the java virtual machine?
What is linked hashset and its features?