how to print return value in java code example Example: print out value java System.out.println('value')