49 lines
730 B
Java
Executable File
49 lines
730 B
Java
Executable File
package test;
|
|
|
|
|
|
|
|
public class TestCode
|
|
{
|
|
|
|
TestSemantic sem = new TestSemantic();
|
|
Vererbung vererb = new Vererbung();
|
|
|
|
void print_String(String s) {
|
|
System.out.println(s);
|
|
}
|
|
|
|
void main(int a) {
|
|
if(a == 0) {
|
|
int i = 0;
|
|
while(i < 20) {
|
|
int k = 0;
|
|
while(k < i) {
|
|
System.out.print(" ");
|
|
k++;
|
|
}
|
|
|
|
System.out.println("Hello World");
|
|
i++;
|
|
}
|
|
vererb.print_Hello_World();
|
|
vererb.print_Hello_World();
|
|
|
|
System.out.println("");
|
|
}
|
|
else {
|
|
print_String("");
|
|
print_String("");
|
|
print_String("");
|
|
print_String(" Dies war ein erfolgreicher Versuch der Gruppe 2: ");
|
|
print_String("");
|
|
|
|
sem.sem_test();
|
|
|
|
int i = 0;
|
|
while(i < 7) {
|
|
print_String("");
|
|
i++;
|
|
}
|
|
}
|
|
}
|
|
} |