how can i take the inputs from users in java program?

Answer Posted / dilshad

there r 2 ways to give the input ,


one is from command-line argument at run time.......


and the another one is to use readLine method of
DataInputStream class.............

Is This Answer Correct ?    33 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is use of a abstract variable?

747


What is file in java?

788


What is annotation in java?

787


What is java dot?

709


How do you sing an Applet ?

2245


What is mean by collections in java?

782


Can we catch more than one exception in a single catch block?

844


what is abstract class in Java?

882


Why is it important to initialize a variable?

741


Differentiate between a class and an object.

803


Difference between object and reference?

898


What is javac used for?

699


How do you create a first line indent?

740


What is the output of the below java program?

819


Can a main method be declared final?

802