Java Program to append content into a file.

Output:

Open the file that will be created in the same directory after execution.
javaCode.txt

Welcome to Simple2Code.