I am trying understand why one of my printf statements fail. #1 below is fine, but #2 fails with the exception at the end. What's causing this?
0 String LOCATION = "http://www.mywebsite.web/";
1 System.out.printf(" <img src=\"%sIMAGE.gif\">", LOCATION);
2 System.out.printf(" <img src=\"%sIMAGE.gif\" width=\"25%\" height=\"25%\" border=0>", LOCATION);
Exception in thread "main" java.util.UnknownFormatConversionException: Conversion = '"'
at java.util.Formatter.checkText(Formatter.java:2519)
at java.util.Formatter.parse(Formatter.java:2501)
at java.util.Formatter.format(Formatter.java:2430)
at java.io.PrintStream.format(PrintStream.java:937)
at java.io.PrintStream.printf(PrintStream.java:838)
at MyCode.main(MyCode.java:292)
Any ideas what's causing this?