我有一個Java組合框和一個鏈接到SQLite數據庫的項目。如果我有一個對象,具有相關聯的ID和名稱: class Employee {
public String name;
public int id;
}
什麼將這些項目分成的JComboBox的最佳方式,使用戶看到的員工的名字,但我可以retreive的僱員,當我更多信息: selEmployee.getSelec
我試圖通過我的node.js服務器向我的mongoDB實例中插入一個2000 x 2000 2d數組。 現在,我做的方法是: for (i=0; i<2000; i++){
//i = height of the tile map
for(x=0; x<2000; x++){
//x is the width of the tile map