Java quickstart example output adapted to scala output

Fixed issue #7.