Tuesday, April 26, 2011

Test code listing

// Comment

public class Testing {

public Testing() {

}

public void Method() {

/* Another Comment

on multiple lines */

int x = 9;

}

}


/**
     * SyntaxHighlighter
     */
    public class HelloWorld extends ActionSupport {
   private String name;
   private String message;

   public String getName() {
     return name;
   }

   public void setName(String name) {
     this.name = name;
   }

   public String getMessage() {
    return message;
   }
   
   public void setMessage(String message) {
    this.message = message;
   }
   
   public String execute() {
    setMessage("Hello, " + getName());
    return "SUCCESS";
   }

}

No comments:

Post a Comment