check 3 delimiters
Hi allcan i make a condition if 3 delimiters exists then insert a new line for example if the program reads from a file a paragraph and if it has )),i.e. 2 brackets and comma then insert a new linehow can this be done?
Do you mean insert a blank line? if so you could do
inputString.replaceAll( "))," , ")),\n");
But depending on your needs there might be a better way.
P.s. you could also deal with each line as a String and use endsWith.
inputString.endsWith(")),");
Message was edited by:
_helloWorld_
1.First you read that file 2.From file Take one line by readLine();3.by using StringTokenizer class prepare Tokens for that line 4.in while loop check each Token and say like inputString.replaceAll( "))," , ")),\n");I hope it will be help full to You.