Say I have a following string str:
GTM =0.2 Test =100 [DLM] ABCDEF =5 (yes, it contains newline characters) That I am trying to split with [DLM] delimiter substring like this:
String[] strArr = str.split("[DLM]"); Why is it that when I do:
System.out.print(strArr[0]); I get this output: GT
and when I do
System.out.print(strArr[1]); I get =0.2
Does this make any sense at all?
=0.2<newline>Test =100<newline>[for thestrArr[1]?