tw.com.javaworld.CH8.SimpleBean (Java2HTML)

| SimpleBean.java |

    1 package tw.com.javaworld.CH8;
    2
    3 import java.io.*;
    4
    5 public class SimpleBean{
    6
    7   public SimpleBean() {
    8   }
    9
    10  private String name;
    11  private String number;
    12
    13  public void setName(String name) {
    14    this.name = name;
    15  }
    16
    17  public void setNumber(String number) {
    18    this.number = number;
    19  }
    20
    21  public String getName() {
    22    return name;
    23  }
    24
    25  public String getNumber() {
    26    return number;
    27  }
    28}