Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Studentenverwaltung {
- public static void main(String[] args) {
- int stud1_matrikel = 20001,
- stud1_day = 2,
- stud1_month = 3,
- stud1_year = 1989,
- stud1_study = 1;
- int stud2_matrikel = 20004,
- stud2_day = 2,
- stud2_month = 3,
- stud2_year = 1989,
- stud2_study = 1;
- int stud3_matrikel = 20006,
- stud3_day = 2,
- stud3_month = 3,
- stud3_year = 1989,
- stud3_study = 3;
- int stud4_matrikel = 20008,
- stud4_day = 2,
- stud4_month = 3,
- stud4_year = 1989,
- stud4_study = 5;
- int stud5_matrikel = 20021,
- stud5_day = 2,
- stud5_month = 3,
- stud5_year = 1989,
- stud5_study = 2;
- System.out.println("_____________________________________");
- System.out.println("Matrikelnummer: " + stud1_matrikel);
- if (stud1_study == 1) System.out.println("Studiengang: Informatik");
- else if (stud1_study == 2) System.out.println("Studiengang: Wirtschaftsinformatik");
- else if (stud1_study == 3) System.out.println("Studiengang: Medieninformatik");
- else if (stud1_study == 4) System.out.println("Studiengang: Systemintergration");
- else System.out.println("Studiengang: Mediendesign");
- if (stud1_study == 1 || stud1_study == 1 || stud1_study == 3) System.out.println("Fachbereich: 1");
- else System.out.println("Fachbereich: 2");
- System.out.println("_____________________________________");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement