{{theTime}}

Search This Blog

Total Pageviews

java.util.MissingFormatArgumentException: Format specifier '%s'

java.util.MissingFormatArgumentException: Format specifier '%s'
at java.util.Formatter.format(Formatter.java:2519)
at java.util.Formatter.format(Formatter.java:2455)
at java.lang.String.format(String.java:2928)

Fix: 
   Check number of %s specifiers in the String and make sure all arguments added in String.format() method.

For example:  String output= "<html><title>%s</title><body>%s</body></html>" ;
String.format(output,"programmersstack","Welcome") ;

No comments:

java.lang.NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCImport

SpringBoot Error: java.lang.NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCImport does not have member field 'com.sun.tools.j...