Some basic code of java and leetcode