The memory address/hashcode following the @ is a hex number. Look at the Integer class for a method to convert a String in base 16 to an int value that can be compared to other numbers.