Friday, May 27, 2011

GeSHi © 2004-2007 Nigel McNie, 2007-2010 Benny Baumann, 2008-2009 Milian Wolff
  1. public class Vehicle {
  2.        
  3.         /**
  4.          * license number of the vehicle
  5.          */
  6.         private String licNumber;
  7.        
  8.         /**
  9.          * type of the vehicle
  10.          */
  11.         private String type;
  12.        
  13.         /**
  14.          * The model of the vehicle.
  15.          */
  16.         private int year;
  17.        
  18.         /**
  19.          * Comments about this vehicle.
  20.          */
  21.         private String comment;
  22.        
  23.         public Vehicle(){
  24.                
  25.         }
  26.        
  27.         /**
  28.          * Vehicle constructor
  29.          * @param _licNumber license number of the vehicle
  30.          * @param _type Type of the vehicle
  31.          * @param _year The model of the vehicle
  32.          * @param _comment Comments about this vehicle
  33.          */
  34.         public Vehicle(String _licNumber, String _type, int _year, String _comment){
  35.                 licNumber = _licNumber;
  36.                 type = _type;
  37.                 year = _year;
  38.                 comment = _comment;
  39.         }
  40.  
  41.         /**
  42.          * @return the licNumber
  43.          */
  44.         public String getLicNumber() {
  45.                 return licNumber;
  46.         }
  47.  
  48.         /**
  49.          * @param licNumber the licNumber to set
  50.          */
  51.         public void setLicNumber(String licNumber) {
  52.                 this.licNumber = licNumber;
  53.         }
  54.  
  55.         /**
  56.          * @return the type
  57.          */
  58.         public String getType() {
  59.                 return type;
  60.         }
  61.  
  62.         /**
  63.          * @param type the type to set
  64.          */
  65.         public void setType(String type) {
  66.                 this.type = type;
  67.         }
  68.  
  69.         /**
  70.          * @return the year
  71.          */
  72.         public int getYear() {
  73.                 return year;
  74.         }
  75.  
  76.         /**
  77.          * @param year the year to set
  78.          */
  79.         public void setYear(int year) {
  80.                 this.year = year;
  81.         }
  82.  
  83.         /**
  84.          * @return the comment
  85.          */
  86.         public String getComment() {
  87.                 return comment;
  88.         }
  89.  
  90.         /**
  91.          * @param comment the comment to set
  92.          */
  93.         public void setComment(String comment) {
  94.                 this.comment = comment;
  95.         }
  96.        
Parsed in 0.211 seconds at 7.26 KB/s
public class Vehicle {

       
        /**

         * license number of the vehicle

         */


        private String licNumber;

       

        /**

         * type of the vehicle

         */


        private String type;

       

        /**

         * The model of the vehicle.

         */


        private int year;

       

        /**

         * Comments about this vehicle.

         */


        private String comment;

       

        public Vehicle(){

               

        }

       

        /**

         * Vehicle constructor

         * @param _licNumber license number of the vehicle

         * @param _type Type of the vehicle

         * @param _year The model of the vehicle

         * @param _comment Comments about this vehicle

         */


        public Vehicle(String _licNumber, String _type, int _year, String _comment){

                licNumber = _licNumber;

                type = _type;

                year = _year;

                comment = _comment;

        }



        /**

         * @return the licNumber

         */


        public String getLicNumber() {

                return licNumber;

        }



        /**

         * @param licNumber the licNumber to set

         */


        public void setLicNumber(String licNumber) {

                this.licNumber = licNumber;

        }



        /**

         * @return the type

         */


        public String getType() {

                return type;

        }



        /**

         * @param type the type to set

         */


        public void setType(String type) {

                this.type = type;

        }



        /**

         * @return the year

         */


        public int getYear() {

                return year;

        }



        /**

         * @param year the year to set

         */


        public void setYear(int year) {

                this.year = year;

        }



        /**

         * @return the comment

         */


        public String getComment() {

                return comment;

        }



        /**

         * @param comment the comment to set

         */


        public void setComment(String comment) {

                this.comment = comment;

        }

       

Saturday, May 21, 2011

public int hello(){

   int x = 54;

   return x;

}