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
This works:
public class Split { public static void main(String...args) { String a = "%abcdef&Ghijk%xyz"; String b[] = a.split("%", 2); System.out.println("Value = "+b[1]); } }