moved java code into java folder to follow maven conventions