how to use console logs in java code example Example: console log java System.out.println(String msg)