-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMethodCollector.java
More file actions
87 lines (69 loc) · 2.53 KB
/
Copy pathMethodCollector.java
File metadata and controls
87 lines (69 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
package hsw;
public class MethodCollector {
/**
* Die main-Methode ruft alle statischen
* Methoden nacheinander auf.
*
* @param args
*/
public static void main(String[] args) {
int methodCounter = 2;
// Erste Methode
System.out.println("Method " + methodCounter + ":");
aFirstMethod();
methodCounter++;
henrysMethod();
// hier kann die nächste Methode folgen.
System.out.println(subtracNumber(5, 2));
aAnotherMethod();
aSecondMethod();
methodCounter++;
nilsMethode();
methodCounter++;
alexMethod();
methodCounter++;
anotherOne();
aThirdMethod();
methodCounter++;
printTicTacToeBoard();
methodCounter++;
}
private static void aFirstMethod() {
System.out.println("MethodCollector aFirstMethod: This method has been created by ");
}
private static void anotherOne() {
System.out.println("MethodCollector anotherOne: This method has been created by Finn ");
}
private static int subtracNumber(int firstNumber, int secondNumber) {
return firstNumber - secondNumber;
}
private static void aAnotherMethod() {
System.out.println("MethodCollector aAnotherMethod: This method has been created by henri ");
}
private static void aSecondMethod() {
System.out.println("MethodCollector aSecondMethod: This method has been created by heisob ");
}
private static void ermirsMethod() {
System.out.println("Ermirs Methode");
}
private static void alexMethod() {
System.out.println("MethodCollector alexMethod: This method has been created by alex ");
}
private static void nilsMethode() {
System.out.println("MethodCollector: This method has been created by Nils ");
}
private static void aThirdMethod() {
System.out.println("MethodCollector aThirdMethod: This method has been created by heisob ");
System.out.println("MethodCollector aThirdMethod");
}
private static void printTicTacToeBoard() {
System.out.println(" | | ");
System.out.println("---+---+---");
System.out.println(" | | ");
System.out.println("---+---+---");
System.out.println(" | | ");
}
private static void henrysMethod() {
System.out.println("Henry hat eine methode erstellt");
}
}