Java Code of BeautyOfProgramming