How do i convert the following output into a integer?

i am basically creating the public key and private key for a rsa encryption and decryption class, when i print my public key and private key i always get something like this:

Encrypt@8a0544 - This is the Public Key (Need to display as number)

and

Decrypt@5e2ccd - This is the Private Key ( need to display as a number)

any clues guys? if you need the whole code let me know

The line of code is:

and in my main partCode:`/**`

* Create a RSA object for a public key holder,

* with just e and n.

*/

public Encrypt(long public_e, long public_n) {

e = public_e;

n = public_n;

}

Code:`Encrypt A = new Encrypt(e, n); // Public Key`