Advertisement
jdalbey

/usr/bin/bluejlib/english/templates/newclass/stdclass.tmpl

Apr 9th, 2014
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.77 KB | None | 0 0
  1. $PKGLINE
  2. /**
  3.  * $CLASSNAME represents a ...
  4.  *
  5.  * @author John Dalbey
  6.  * @version 0.1
  7.  */
  8. public class $CLASSNAME
  9. {
  10.     // instance variables
  11.     private int x;
  12.  
  13.     /**
  14.      * Constructor for objects of class $CLASSNAME
  15.      */
  16.     public $CLASSNAME()
  17.     {
  18.         // initialise instance variables
  19.         x = 0;
  20.     }
  21.  
  22.     /**
  23.      * Method description goes here.
  24.      *
  25.      * @param  y   a sample parameter for a method
  26.      * @return     the sum of x and y
  27.      */
  28.     public int sampleMethod(int y)
  29.     {
  30.         return x + y;
  31.     }
  32.  
  33.     /**
  34.      * A local main for unit testing.
  35.      *
  36.      * @param args command line arguments
  37.      */
  38.     public static void main(String[] args)
  39.     {
  40.         $CLASSNAME app = new $CLASSNAME();
  41.     }
  42.  
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement