The method format(Locale, String, Object[]) in the type PrintStream is not applicable for the arguments (Locale, String, String, int, int, String, double)
System.out.format(new Locale("pt", "BR"), "%s - %04d-%08d, %20s: %08.2f%n",
tipoConta, agencia, numero, titular, saldo);