Project Euler problem 1 Java solution

Added .class to .gitignore as well