Ad
  • Custom User Avatar

    digits is ArrayList. Add method will add new Object ( in this example Integer) on another place.

    eg. temp = 75; 75%10 = 5 ; after digits.add(0,5) "5" will be on index 0 ; after digits.add(0,7) "7" will be on index 0 and "5" will be on 1.