Last active
August 29, 2015 13:57
-
-
Save stunstunstun/9805332 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Marine { | |
private int level; | |
private String color; | |
public static final int type = 1; | |
public void upgradeWeapon(int weaponType, int itemLevel) { | |
int newLevel = level > itemLevel ? level : level + weaponType; | |
System.out.println("New Level is " + newLevel); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment