mine mam told me that with this line we can tell jvm to print on next line , but i think there is something wrong with jvm ..lolz ..jokes apart but tell me whats wrong in this code
my file "a" contents are in single line mine question is , how jvm understands that from which point the text should be printed on a newline ?
what i want in file "b" is
in next line .
but it is giving me output on file 'b' is same as contents of file "a" .
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.