Hi,

The Java SE version 5  incorporated the ability to format output
similar to the function printf of the C programming language.
The Java syntax for doing so is as follows:

System.out.printf("format_string",
comma_separated_list_of_expressions_to_print);

In your case e has to be an String, so the %s tells to the function
printf() that you will print and String.

For example:

String e = "It's and exception";
System.out.printf("Caught runtime exception = %s", e);

RESULT > Caught runtime exception = It's and exception


Greetings and have a nice day,
--
______________________________

.:: /|/| auricio /|/| urillo ::.
______________________________

On Jul 29, 12:47 pm, JKid314159 <[email protected]> wrote:
> Dear Java Programmer:
>  
> I am unsure what the character "%s" is.  I could not find an explanation in 
> my search.  I would appreciate your feedback.  Thanks.
>  
> System.out.printf("Caught runtime exception = %s", e);
>
> Respects,
>
> JKid314159http://groups.google.com/group/existentialist-reading-circle?hl=en
>  
>  
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to