Doppelklicken % Formatierung Frage für printf in Java

%s ist ein string in printf und %d ist eine Dezimalzahl, dachte ich...doch wenn putting in

writer.printf("%d dollars is the balance of %s\r\n", bal, nm);

..eine Ausnahme geworfen wird, sagt mir, dass %d != lang.Doppel. Ideen?

  • Was ist "bal" - Typ?
InformationsquelleAutor D. Spigle | 2010-10-04
Schreibe einen Kommentar