I change String to ArrayList of numbers, please check.
Deleted all unused code.