Test code for practice Java