Originally Posted by
zemiak
String str = "My name?It's me Sumon?There was a logic behind it.where is the basic knowledge?i can go the the room.";
String[] splited = str.split( "(?<=[\\.|\\?])" );
for (String s: splited)
System.out.println(s);
this is the perfect and easy system .thanks millions of time.
i have solved it with replace split with a bigger code.
String str="Hello man.How are you?I am fine and what's about your programming nowadays?would you like to take anymore pressure?yes i will take more pressure.";
String[] word=str.replace("?","?\n").split("");
for(String w:word)
System.out.print(w);