java string split with wont work

Solutions on MaxInterview for java string split with wont work by the best coders in the world

showing results for - "java string split with wont work"
Matteo
05 Nov 2016
1//Java
2
3String sentence = "Hello World.How are you?";
4String[] newSentence = sentence.split("\\.");
5String firstString = newSentence[0];
6String secondString = newSentence[1];
7System.out.println(firstString + ' ' + secondString);
8