fix #stdout function in java backend
Merge pull request #666 from dwightguth/stdout2

fix #stdout function in java backend