Skip to content

Commit be7e759

Browse files
author
github-actions
committed
Google Java Format
1 parent 3f55374 commit be7e759

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Creature.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,13 @@ public int getHitpoints() {
2424

2525
public void attackCreature(Creature creature) {
2626
creature.hitpoints -= this.attackValue;
27-
System.out.println(this.name + " greift " + creature.name + " an und erzielt " + this.attackValue + " Schaden");
27+
System.out.println(
28+
this.name
29+
+ " greift "
30+
+ creature.name
31+
+ " an und erzielt "
32+
+ this.attackValue
33+
+ " Schaden");
2834
System.out.println(creature.name + " hat noch " + creature.hitpoints + " Lebenspunkte");
2935
}
30-
3136
}

Exercise.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ public static void main(String[] args) {
88
vampire.attackCreature(zombie);
99
zombie.attackCreature(vampire);
1010
vampire.attackCreature(zombie);
11-
1211
}
1312
}

0 commit comments

Comments
 (0)