Description
The current print/console.log implementation in the java shell is a custom one that effectively duplicates what we have in the shell-api package. This has been an issue multiple times (see https://github.com/mongodb-js/mongosh/pull/1102 for an example), and we should move the java-shell towards using the same infrastructure that other users of the shell also use.