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 printstream is not applicable for the arguments (String,int)at tutorial 19.App.main(App.java:11)

23rd Dec 2016, 12:59 AM
Abdul Qadir
Abdul Qadir - avatar
3 Answers
+ 1
you are using wrong print statement. Its like System.out.println(" "); there is nothing like "printf"
24th Dec 2016, 6:12 PM
vishal shirke
vishal shirke - avatar
0
maybe give more of the code^^
23rd Dec 2016, 1:55 AM
Jan Eylander
Jan Eylander - avatar
0
yea maybe it is just this little thing i've missed
25th Dec 2016, 2:28 PM
Jan Eylander
Jan Eylander - avatar