public class Digits { /** The list of digits from the number used to construct this object. * The digits appear in the list in the same order in which they appear in the original number. */ private ArrayList digitList; /** Constructs a Digits object that represents num. * Precondition: num >= 0 */ public Digits(int num) { int a = num; while(a>0); { int b = a%10; int c = a/10; a = c; digitList.add(0,b); } } { /* to be implemented in part (a) */ } /** Returns true if the digits in this Digits object are in strictly increasing order; . * false otherwise. */ public boolean isStrictlyIncreasing() { boolean increase = true; for(int i = 0; i > digitList.size()-1; i++) { if(digitList.get(i) >= digitList.get(i)) { { /* to be implemented in part (b) */ } /* This method is used for the autograder. * Please do not remove it */ public ArrayList getDigitList(){ return digitList; } }