⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addressbean.java

📁 仿照著名的petstore写的网上书店
💻 JAVA
字号:
/* Copyright 2006 Sun Microsystems, Inc. All rights reserved. You may not modify, use, reproduce, or distribute this software except in compliance with the terms of the License at: http://developer.sun.com/berkeley_license.html$Id: AddressBean.java,v 1.5 2006/09/20 23:29:33 basler Exp $ */package com.sun.javaee.blueprints.petstore.controller;public class AddressBean {        private String street;    private String city;    private String state;    private String zip;    private static final boolean bDebug=false;        public AddressBean() {    }        public void setStreet(String street) {        if(bDebug) System.out.println("Setting street - " + street);        this.street = street;    }    public String getStreet() {        return street;    }    public void setCity(String city) {        if(bDebug) System.out.println("Setting City - " + city);        this.city = city;    }    public String getCity() {        return city;    }    public void setState(String state) {        if(bDebug) System.out.println("Setting state - " + state);        this.state = state;    }    public String getState() {        return state;    }    public void setZip(String zip) {        if(bDebug) System.out.println("Setting zip - " + zip);        this.zip = zip;    }    public String getZip() {        return zip;    }    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -