Guys,
I have the following code which the function is convert a Hex
String to Ascii format and write to a file.
The String in Hex is "dado".
But the problem is that, most of the time the program runs correctly, but sometimes gives the following error message, depending of the Hex String;
Exception in thread "main" java.util.UnknownFormatConversionException: Conversion = ''
at java.util.Formatter.checkText(Formatter.java:2547)
at java.util.Formatter.parse(Formatter.java:2533)
at java.util.Formatter.format(Formatter.java:2469)
at java.io.PrintWriter.format(PrintWriter.java:905)
at java.io.PrintWriter.printf(PrintWriter.java:804)
at listening.Listening.main(Listening.java:260)
The error occurs at the command:
What should be changed in the program so it does not give this error?
Thanks,
Fernando