How to give a console log in java code example Example: console log java System.out.println(String msg)