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

📄 customerio.java

📁 JAVA source code with book JAVA SE6
💻 JAVA
字号:
public class CustomerIO
{
    public static Customer getCustomer(int custNo)
    {
        Customer cust = new Customer();
        if (custNo == 1000)
        {
            cust.name = "Andrew Antosca";
            cust.address = "485 Duane Terrace";
            cust.city = "Ann Arbor";
            cust.state = "MI";
            cust.zipCode = "48108";
        }
        else if (custNo == 1001)
        {
            cust.name = "Barbara White";
            cust.address = "3400 Richmond Parkway #3423";
            cust.city = "Bristol";
            cust.state = "CT";
            cust.zipCode = "06010";
        }
        else if (custNo == 1002)
        {
            cust.name = "Karl Vang";
            cust.address = "327 Franklin Street";
            cust.city = "Edina";
            cust.state = "MN";
            cust.zipCode = "55435";
        }
        else if (custNo == 1003)
        {
            cust.name = "Ronda Chavan";
            cust.address = "518 Comanche Dr.";
            cust.city = "Greensboro";
            cust.state = "NC";
            cust.zipCode = "27410";
        }
        else if (custNo == 1004)
        {
            cust.name = "Sam Carol";
            cust.address = "9379 N. Street";
            cust.city = "Long Beach";
            cust.state = "CA";
            cust.zipCode = "90806";
        }
        return cust;

    }
}

⌨️ 快捷键说明

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