/** * @author * @version */ public class Model { private int[] plustemp; private int[] minustemp; private String[] monate; public Model() { plustemp = new int[12]; plustemp[0] = 10; plustemp[1] = 11; plustemp[2] = 13; plustemp[3] = 7; plustemp[4] = 5; plustemp[5] = 3; plustemp[6] = 9; plustemp[7] = 2; plustemp[8] = 14; plustemp[9] = 1; plustemp[10] = 12; plustemp[11] = 6; minustemp = new int[12]; minustemp[0] = -6; minustemp[1] = -8; minustemp[2] = -30; minustemp[3] = -4; minustemp[4] = -9; minustemp[5] = -3; minustemp[6] = -7; minustemp[7] = -11; minustemp[8] = -24; minustemp[9] = -13; minustemp[10] = -5; minustemp[11] = -12; monate = new String[12]; monate[0] = "Januar"; monate[1] = "Februar"; monate[2] = "März"; monate[3] = "April"; monate[4] = "Mai"; monate[5] = "Juni"; monate[6] = "Juli"; monate[7] = "Ausgust"; monate[8] = "September"; monate[9] = "Oktober"; monate[10] = "November"; monate[11] = "Dezember"; } public int gibplustemp(int index) { int temp = plustemp[index]; return temp; } public int gibminustemp(int index) { int temp = minustemp[index]; return temp; } public String gibmonate(int index) { String monat = monate[index]; return monat; } // Dienste }