This is my java pratise code.