mike said:
I have a base represented as:
0x011B0000
What does how it's represented matter?
To this I have to add an offset represented as this:
0x5900
How can I add the offset and see the resulting hex code?
Add the two numbers then display the result in hex.
There's more than one way to display the result in hex. The simplest might be
to use
<
http://java.sun.com/javase/6/docs/api/java/lang/Integer.html#toHexString(int)>
System.out.println( Integer.toHexString( 0x011B0000 + 0x5900 ));
The String representation of an 'int' has absolutely nothing whatsoever at all
in the least to do with how to calculate with it. An integer is an integer is
an integer regardless of the numerals used to represent its value.
A number and a numeral are not the same thing.
It is a good idea to get very familiar with the fundamental Java API, such as
java.lang.*, java.util.* and java.io.*. Those fall under the category of
elementary Java knowledge. Read and study the Javadocs for those packages and
their classes.