Java Instructions Create Netbeans Project Following Characteristics Create Utility Class M Q37085281

java

Instructions

Create a NetBeans project with the following characteristics.
Create a “utility” class with methods getUserDouble() andgetUserInt() that takes a prompt and error message, both asStrings, and returns a double and int value respectively.  Addanother method getUserString() that takes a prompt and returns theString entered by the user.  In the getUserDouble(), read theinput from the user as a String and convert it withDouble.parseDouble().  In getUserInt(), useInteger.parseInt().
In a subpackage, create a class called Car with the followingattributes:

modelYear an int with allowed values from 1898 to thecurrent year +1

makeName String that cannot be null or empty

modelName

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.