I fixed your input and output files. They were in one code block, which was confusing.
naved momin wrote:i didnt , understand i have a long text twice what i want is after every fullstop write in newline .
Why didn't your original post mention this requirement? The input file in your original post doesn't have any full stops.
Do you know how to look for a character in a
String? Maybe looking through the
JavaDoc for java.lang.String will inspire you.