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 method reference?

513


What is the purpose of interface?

573


What is difference between final and immutable?

552


What is preflight request?

524


Explain the importance of finally block in java?

566






Can java arraylist hold different types?

486


What is final keyword in java? Give an example.

574


What is difference between static variable and global variable?

542


Can we instantiate interface in java?

668


In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?

829


In Java list the methods that can be overridden?

564


What is meant by overloading?

584


What is unmodifiable collection in java?

505


Where is const variable stored?

528


What is the static import?

581