Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 25a26,30
- > public void advance(int skipCount) {
- > for(int i = 1; i<=skipCount; i++)
- > hasGun=hasGun.next;
- > }
- >
- 28,30c33
- < for(int i = 1; i<=skipCount; i++){
- < hasGun=hasGun.next;
- < }
- ---
- > advance(skipCount);
- 32d34
- < //hasGun.kill(hasGun.Number);
- 34d35
- < System.out.println("Soldier " + hasGun.Number + " is dead.");
- 51d51
- < //public void kill(int number){
- 53a54
- > System.out.println("Soldier " + this.Number + " is dead.");
Add Comment
Please, Sign In to add comment