I am trying to do this operation on two numbers, but get the number format exception: invalid int: "X " how can I do this ?
$ hash = $ orderdid * 3; $ Hash = $ hash + 15; $ Hash = $ hash $ userid; $ Hash = $ hash - 120; $ Hash = $ hash / 5; $ Hash = $ hash $ userid; $ Hash = $ hash - 174;
The order ID is 1426518618 and UserID 9965 is
EDIT: This is the PHP code, but there is no difference between this and java except (and) is! This means that two numbers are for example X = 22 and Y = 33 then XI mean 2233
This is my code which gives me an error:
GetHash private string () {Long hash = 0; Try {hash = (integer. PRIINIT (MORIDIDID)) * 3; Hash = hash +15; String temp = string.value (hash); Hash = integer.center (temp + MyAccountAdapter.mEditItems.getID ()); Hash = hash-120; Hash = hash / 5; Temp = String.valueOf (hash); Hash = integer.center (temp + MyAccountAdapter.mEditItems.getID ()); Hash = hash -174; } Hold (NumberFormatException e) {e.printStackTrace (); } Return String.valueOf (hash); }
Thank you in advanced
Can be used . This size is 2 ^ 64-1. You can read more here: When You Long If you want to use parcelong (), then you integer The integer is the wrapping class for the primitive int and for the prolonged primitive long, read more here: way2java.com/java-lang/wrapper-classes
No comments:
Post a Comment