Ad
  • Default User Avatar

    I think your generateTextFromLines() is really inefficient because it creates a new String with every iteration of the loop. Using StringBuilder would be better. I used String.join().