I want to parse this String Content.
requiredContent='Tigers that breed with lions give birth to hybrids known as "tigons" and "ligers."// In 19th-century Sweden, 380 kids were strangled by their mothers or nurses every year, according to the Swedish Statistical Bureau.'
I split it with
String[] factsArray = StringUtils.split(requiredContent, "//");
and I got the result
[Tigers that breed with lions give birth to hybrids known as "tigons" and "ligers.", In 19th-century Sweden, 380 kids were strangled by their mothers or nurses every year, according to the Swedish Statistical Bureau.]
The resultant factsArray should have an array length of 2 but it was showing an array of length 4.It was parsing the string which has "," included in the string.This should not happen ,How to fix this ???