Skip to content

Commit 8e80b99

Browse files
committed
add solution
1 parent 0fced0c commit 8e80b99

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

Exercise.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
public class Exercise {
22

33
public static void main(String[] args) {
4-
// implement exercise here
4+
String name = "Daniel";
5+
int age = 40;
6+
char gender = 'M';
7+
8+
Exercise.printPersonData("Daniel", 40, 'M');
9+
Exercise.printPersonData(name, age, gender);
510
}
11+
12+
public static void printPersonData(String name, int age, char gender) {
13+
System.out.println("Name: " + name);
14+
System.out.println("Alter: " + age);
15+
System.out.println("Geschlecht: " + gender);
16+
}
617
}

0 commit comments

Comments
 (0)