I want to split a string like "p^q" into two strings, i.e. "p" and "q". How can I do this using "string.split" in Java. I have used syntaxes like I want to split a string like "p^q" into two st
I want to split a string like "p^q" into two strings, i.e. "p" and "q". How can I do this using "string.split" in Java. I have used syntaxes like I want to split a string like "p^q" into two st