How to convert this Objective C code in Java ?
NSMutableString * thisPart = [[NSMutableString alloc] init];
UInt64 intVal = (UInt64)[thisPart longLongValue];
if (!intVal) { isBad = YES; break; }
I’ve been searching over the internet but didn’t find any useful information over the internet.
If I had :
UInt32 _tmpPacket_packetId;
_tmpPacket_packetId = (UInt32)intVal; // UInt64 intVal = (UInt64)[thisPart longLongValue];
Can I do this :
BigInteger tmpPacket_packetId = intVal;
Actually the right question is : Is it right to do that to get the same thing as done in Objective C?
I’m going to assume that you don’t care about the NSMutableString bit which would probably similar to the StringBuilder/StringBuffer classes. A UInt64 would appear to be a 64bit unsigned int? Then you could use the String constructor provided by BigInteger(String)