I have a String str = "13-005B,162-,0000-"
. I have a function named outputUtill
which need a input in format:- ="(string1 value)",="(string2 value)",="(string3 value)"
. The outputUtill
function splits the input string based on ","
as delimiter. Is there any way so I can make the commas(,) escapable in String str
so that when it becomes of format:- ="13-005B,162-,0000-"
and passes to outputUtill function
it does not get split into three substring
- 13-005B
- 162-
- 0000-
For example, we pass
="370143030",="SPRING TOWNSHIP CENTRE",="1869 ZION ROAD BELLEFONTE PA 16823",="8143551",="02",="13-005B,162-,0000-",
to the outputUtill function. We want output as
370143030
SPRING TOWNSHIP CENTRE
1869 ZION ROAD BELLEFONTE PA 16823
8143551
02
13-005B,162-,0000-