I'm evil... |
||
![]() 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:
|
||
| CyberArmy::Forum v0.6 Generated In 0.02272 seconds |