complete Euler 7

written in Java. use of ArrayList demonstrated. compiled on cmd line.