The list of arguments when passed to the parenthesize2 function is interpreted as an object (not as a list of expressions) and the individual elements are not then printed.
I would suggest to change the parenthesize2 function body to handle a List Object using a recursive helper function:
https://github.com/munificent/craftinginterpreters/blob/cc8a0803abfa547bbb2bf1fa4b7847efd510d2cb/java/com/craftinginterpreters/lox/AstPrinter.java#L145-L147
The list of arguments when passed to the parenthesize2 function is interpreted as an object (not as a list of expressions) and the individual elements are not then printed.
I would suggest to change the parenthesize2 function body to handle a List Object using a recursive helper function:
The helper function:
P.S. Thank you for the marvelous book, I find it a precious resource!