0

Getting error when try to use this code

System.out.printf("my name is %s","Roy"); it's showing like: exception in thread"main" Java.lang.Error: unresolved compilation problem: the method printf(String,Object[ ]) in the type prints team is not applicable for the arguments (String,int)at tutorial 19.App.main(App.java:11)

23rd Dec 2016, 12:58 AM
Abdul Qadir
Abdul Qadir - avatar
1 Antwort
0
Are you still getting that error? I tried it for myself and it worked fine.
30th Dec 2016, 9:27 PM
merkrafter