Converted Army class to Java.