My java program compiled successfully.Step 7: write the following code in command prompt. prees enter and see the output.
java demo
// demo is a class name which is written in my “swap.java” file.output