System.out.printf ERROR!!!!!!!!!!!

0 Jaikirat Singh Sandhu · June 4, 2015
When i try System.out.printf it says "The method printf(String1, Object[])....... is not applicable for arguements(String1, String1)"

Post a Reply

Replies

Oldest  Newest  Rating
0 Bob Roberts · June 8, 2015
Did you make sure that there is a toString() method in the class of the object?

Remember, objects are not strings so it will look for a string representation inside the object's class (namely the toString() method).
  • 1

Java / Android Development

106,943 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator