Closed ShashiShekhar7 closed 3 years ago
You can use the function str.delete(0, str.length()) to clear the data after the for loop.
Thanks for the reply. It was a silly question. It was solved on the same day I asked. But forgot to close the issue.
String data; static StringBuilder str = new StringBuilder();