teststore01.java

来自「此程序都是企业级 的数据库开发程序 全面揭示了JAVA对数据库的操作」· Java 代码 · 共 21 行

JAVA
21
字号
package connections;

public class TestStore01 {
  public static void main(String[] args) {
    String description = "Bricks & Morter";
    int typeId = 1;
    String address1 = "123 E. Bijou St.";
    String address2 = "";
    String city = "Colorado Springs";
    String postalCode = "80903";

    Store01 store = new Store01(description, typeId, address1, 
                                address2, city, postalCode);
    boolean result = store.create();
    if (result) {
      System.out.println("Store created successfully");
    } else {
      System.out.println("Store NOT created");
    } 
  } 
}

⌨️ 快捷键说明

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