Thursday, 8 August 2013

More efficient way splitting than this?

More efficient way splitting than this?

Is there a more efficient way of splitting a string than this?
String input = "=example>";
String[] split = input.split("=");
String[] split1 = split[1].split(">");
String result = split1[0];
The result would be "example".

No comments:

Post a Comment