How to split a sentence into two parts in JAVA? If there is the following
String sentence = \"I love Java <=> I love Python\"
How can I
Why not do:
String[] words = line.split("<=>"); for(String word : words){ System.out.println(word); }
Output:
I love Java I love Python
I love Java
I love Python