I have receive string
String message = "Value{A=10,B=20,C=30,D=700-2-1, Bourke STREET, SOUTH 2/28 QUEEN ST,E=40,F=50}";
Map<Object, Object> = {
A = 10 ,
B = 20
C = 30
D = 700-2-1, Bourke STREET, SOUTH 100/28 QUEEN ST
E = 40
F = 50
}
I am looking for a generic approach. Where
Need All values of A,B,C ....
The order of A,B,C,D,E and F will change
Only D may contain single or multiple commas(,) in its value or no comma
This code will work for above scenario :