Advertisements
Advertisements
Question
What are the different ways to give input in a Java Program?
Answer in Brief
Solution
The different ways to give input in a Java Program are:
- Using function argument
- Using InputStreamReader class
- Using Scanner class
- Using the Command Line argument
shaalaa.com
Is there an error in this question or solution?
Chapter 1.06: Input in Java - EXERCISES [Page 66]