Added java code for project euler problems