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) | SoloLearn: Learn to code for FREE!

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)

12/23/2016 12:59:25 AM

Abdul Qadir

3 Answers

New Answer

+1

you are using wrong print statement. Its like System.out.println(" "); there is nothing like "printf"

0

maybe give more of the code^^

0

yea maybe it is just this little thing i've missed