Guest User

Untitled

a guest
Nov 25th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. 25a26,30
  2. > public void advance(int skipCount) {
  3. > for(int i = 1; i<=skipCount; i++)
  4. > hasGun=hasGun.next;
  5. > }
  6. >
  7. 28,30c33
  8. < for(int i = 1; i<=skipCount; i++){
  9. < hasGun=hasGun.next;
  10. < }
  11. ---
  12. > advance(skipCount);
  13. 32d34
  14. < //hasGun.kill(hasGun.Number);
  15. 34d35
  16. < System.out.println("Soldier " + hasGun.Number + " is dead.");
  17. 51d51
  18. < //public void kill(int number){
  19. 53a54
  20. > System.out.println("Soldier " + this.Number + " is dead.");
Add Comment
Please, Sign In to add comment