Your class should be called Number. It should contain 6 fields of type int
named correspondingly for numberEntered, firstDigit, secondDigit, thirdDigit,
fourthDigit and fifthDigit. You should have the following methods:
a) default constructor – initializes to "no data" ie zeros.
b) getNumberFromUser – prompts user for the five-digit number and reads in
their input
c) calculateDigits – calculates each of the five digits
d) displayDigits – displays each of the digits on a separate line
Rewrite your main method to declare a reference variable to an object of this
class, use new to create (instantiate) the object, and then call the methods
on the object.
Im new to Java and still dont get this.