CyberArmy University | Open Source Institute | CyberArmy Intelligence & Security | CyberArmy Services & Projects

I'm evil...


[Replies] [Reply] [View by Thread] [Help]
[Back To SNEAK Development Forum]

Posted by Tr flamebalrog On 2005-03-06 00:27:37
In Reply to Modified (Exceptions Included) Posted by Cpt SAJChurchey On 2005-02-27 20:11:58

Tr
Tr flamebalrog


Well, I gave you a possible way to speed things in your function, in the hope that you would be curious and search for a way to speed things up a bit more...

If you didn't yet (I didn't check for the SVN repository yet), then I'll give you an advice (maybe the only one my Java knowledge allows me to give) : always have a copy of the API docs opened when coding and always read about classes you're manipulating. Your method returns an int ? Read about Integer. You method uses a Byte instance ? Read about Byte. And so on...

After reading (about Integer), you'll see that Integer.parseInt(<yourBinaryStringHere>,2) could be used instead of an home made bin2int() method.

- Is it a feature or a bug ? -


Replies:


Guest:
Subject:
Message:
Signature:
Optional Image Link:
http://

CyberArmy::Forum v0.6
Generated In 0.02272 seconds


About Us | Privacy Policy | Mission Statement | Help