I was parsing the command line wrong; I needed to parse the String values into ints before using them.