abalfazl , have you posted the same code which you are running?
Looks like there was a System.out.print statement after line 33 which prints another list.
You might have removed that statement and then directly ran it (but forgot to compile the modified code before running it).
You can use a single statement instead of the above two statements.
println() adds a line separator et the end of the output automatically.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com