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

Name few java 8 annotations ?

808


What is a condition in programming?

773


What do you understand by java?

766


Explain access modifiers in java.

803


What is console based application in java?

812


How do you add spaces in java?

767


What is the protected method modifier?

803


What is final variable?

710


How to create a thread in java?

888


What is protected access modifier?

811


What type of language is java?

770


What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?

960


Explain static nested classes ?

835


Can a main method be declared final?

825


What does java edition mean?

782