PDA

View Full Version : Why keep using substring? Split for the win!



Auv5
December 19th, 2010, 21:59
I don't understand why the RuneScape Private Server community keeps using substrings in their code. It is much more readable to do String[] words = command.split(" ");. There, you've got a array of all of the words in your command.

Just wondering why the community doesn't use that. If there's a reason, please explain.

Thanks, Auv5