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

Explain about interthread communication and how it takes place in java?

546


What is arrays fill in java?

547


Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?

680


difference between byte stream class and character stream class?

4085


why Interface used?

539






Tell me how many ways are there to initialise an integer with a constant.

646


What does the three dot emoji mean?

586


What is a superclass?

928


What are multiple inheritances? Is it supported by java?

467


What is the main method java?

534


What is the difference between Java and C++?

615


What is a modifier?

874


Can a final variable be null?

548


What is volatile keyword in java

649


What is the final keyword denotes?

677