my java code of leetcode study