New feature for MyFirstJavaTest.java

Updated MyFirstJavaTest.
Add new feature in this program.