Converted p[roject to Java