Step 1: Go to Notepad and open New Project.
File→New or Ctrl+N.
Step 2: Import from Java utility package.
Step 3: We can write the class name and declare the variable.
Step 4: You can write the overall program.
Step 5: Go to the command prompt by pressing Windows+R.
Step 6: You can see the output.