KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > test > bo > User


1 package com.test.bo;
2
3 public class User {
4
5     private String JavaDoc username;
6     private String JavaDoc password;
7     private String JavaDoc email;
8     private int age;
9
10
11     public String JavaDoc toString() {
12         return "username=" + username
13                 + ";password=" + password
14                 + ";email=" + email
15                 + ";age=" + age;
16     }
17
18     public int getAge() {
19         return age;
20     }
21
22     public void setAge(int age) {
23         this.age = age;
24     }
25
26     public String JavaDoc getEmail() {
27         return email;
28     }
29
30     public void setEmail(String JavaDoc email) {
31         this.email = email;
32     }
33
34     public String JavaDoc getPassword() {
35         return password;
36     }
37
38     public void setPassword(String JavaDoc password) {
39         this.password = password;
40     }
41
42     public String JavaDoc getUsername() {
43         return username;
44     }
45
46     public void setUsername(String JavaDoc username) {
47         this.username = username;
48     }
49 }
50
Popular Tags