cleaned up formatting

Signed-off-by: Arvind Chembarpu <achembarpu@gmail.com>
added java .gitignore

Signed-off-by: Arvind Chembarpu <achembarpu@gmail.com>
solved problem 1 in java

Signed-off-by: Arvind Chembarpu <achembarpu@gmail.com>