How to split string at comma so that it keeps all spaces. Example:
Input: [\" hello , world \"]
Need to separate this in array so that it lo
String s = " hello , world "; String s1[] = s.split(","); System.out.println(s1[0]+s1[1]); output: hello world