Skip to content

Instantly share code, notes, and snippets.

@stunstunstun
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stunstunstun/9805332 to your computer and use it in GitHub Desktop.
Save stunstunstun/9805332 to your computer and use it in GitHub Desktop.
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