KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tctest > domain > Account


1 package com.tctest.domain;
2
3 public class Account {
4
5     private int id;
6
7     private String JavaDoc number;
8
9     public int getId() {
10         return id;
11     }
12
13     public void setId(int id) {
14         this.id = id;
15     }
16
17     public String JavaDoc getNumber() {
18         return number;
19     }
20
21     public void setNumber(String JavaDoc number) {
22         this.number = number;
23     }
24
25     public String JavaDoc toString() {
26         return "account.id: " + id + ", account.number: " + number;
27     }
28 }
29
Popular Tags