No problem, be sure to do error checking. If the value doesn't exist, an empty string is returned. If you call integer.parse() on a empty string an error will be thrown.