I want to split a string by \'=\' charecter. But I want it to split on first instance only. How can I do that ? Here is a JavaScript example for \'_\' char but it doesn\'t w
Yes you can, just pass the integer param to the split method
String stSplit = "apple=fruit table price=5" stSplit.split("=", 2);
Here is a java doc reference : String#split(java.lang.String, int)