java string split with wont work

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

registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
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