Convert out.printf to println(String.format(...))