Describe a scenario where you use a class to obtain user


Java classes provide an efficient and effective tool for programmers to use to input data. The ability to use (and reuse) these prewritten classes gives Java and other object-oriented programming languages a big advantage over traditionally structured languages. Many Java classes, such as Scanner and JOptionPane, are provided as part of the Java Integrated Development Environments (IDE) you are using. In this Discussion, you explore two of these provided classes used for data input.

For this Discussion:

Describe a scenario where you use a class to obtain user input in a Java program. Explain whether the Scanner class or the JOptionPane class would be more appropriate to use in your scenario. Justify why you selected one class over the other for your Java program.

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Describe a scenario where you use a class to obtain user
Reference No:- TGS02382656

Now Priced at $15 (50% Discount)

Recommended (94%)

Rated (4.6/5)