Main.java
Output
Click Run to execute your code.