KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > samples > ejb > NiceThings


1 package samples.ejb;
2
3 import java.io.Serializable JavaDoc;
4
5 public class NiceThings
6                         {
7                         
8                         
9     private String JavaDoc food;
10     private int luckyNumber;
11     private String JavaDoc colour;
12
13     public NiceThings(String JavaDoc food, int luckyNumber, String JavaDoc colour) {
14         this.food = food;
15         this.luckyNumber = luckyNumber;
16         this.colour = colour;
17     }
18     
19     public String JavaDoc getFood() {
20         return food;
21     }
22     
23     public int getLuckyNumber() {
24         return luckyNumber;
25     }
26     
27     public String JavaDoc getColour() {
28         return colour;
29     }
30     
31     public void setFood(String JavaDoc food) {
32         this.food = food;
33     }
34     
35     public void setLuckyNumber(int luckyNumber) {
36         this.luckyNumber = luckyNumber;
37     }
38     
39     public void setColour(String JavaDoc colour) {
40         this.colour = colour;
41     }
42     
43 }
44
Popular Tags