This is my beginner java codes.