How to split a word to 2 words example like
String a="pavanpavan"
and to print this in 2 variables like
a1="pavan"
a2="pavan"
I've tried to split using the split("p")
, but the output will be
avan
avan
How to print full word as pavan and pavan?