@@ -0,0 +1,942 @@
+%0Apublic class JavaClassExample%7B/*%0A  Syntax of defining memebers of the java class is,%0A    %3Cmodifier%3E type %3Cname%3E;%0A  */%0A  private String name;%0A  /*%0A  Syntax of defining methods of the java class is,%0A  %3Cmodifier%3E %3Creturn-type%3E methodName(%3Coptional-parameter-list%3E) %3Cexception-list%3E%7B%0A                    ...%0A  %7D%0A  */%0A  public void setName(String n)%7B%0A    //set passed parameter as name%0A    name = n;%0A    name = n;%0A  %7D%0A  public String getName()%7B%0A    //return the set name%0A    return name;%0A  %7D%0A  //main method will be called first when program is executed%0A  public static void main(String args%5B%5D)%7B%0A    /*%0A    Syntax of java object creation is,%0A    %3Cclass-name%3E object-name = new %3Cclass-constructor%3E;%0A    */%0A    JavaClassExample javaClassExample = new JavaClassExample();%0A    //set name member of this object%0A    javaClassExample.setName(%22Visitor%22);%0A    // print the name%0A    System.out.println(%22Hello %22 + javaClassExample.getName());      %0A  %7D%0A%7D%0A %0A

Create test.java