// Opret ny private void ny(int type) { String sType = ""; String[] sNavne = {}; if (type == hyttePlads) { sType = "hytte eller plads"; sNavne = hyttePladsAttributter; } else if (type == pris) { sType = "pris"; sNavne = prisAttributter; } else if (type == sæson) { sType = "sæson"; sNavne = sæsonAttributter; } String[] svar = ui.multiInput("Indtast oplysninger på ny " + sType, sNavne); if (type == hyttePlads) { AdministrationsFunc.opretHyttePlads(svar); } else if (type == pris) { AdministrationsFunc.opretPris(svar); } else if (type == sæson) { AdministrationsFunc.opretSæson(svar); } }