Write a JAVA program to solve the following problem. Your program should properlycompile and run. Your code MUST follow the documentation style used in your textbook.You need to upload into Moodle the following: The electronic version of your SINGLE source code file after you successfullycompiled and ran it. Please label your file appropriately.i do the first steps you will find in the file name lab1 code MUST follow the documentation style used in your textbook you find it in lab1Code