excersize code for JAVA, Data Structure, Algorithm