Tried Code1_5 in C, need to move to Java due to lack of library support