Reorganize JavaPractice code