The java.lang.Integer class has a lot of built in tools you can use... The eclipse IDE will list many by typing Integer. and scroll through the list...