February 2014
Beginner
1248 pages
62h 25m
English
Lines 13–14 use static String method format to return a String containing a greeting with the user’s name. Method format works like method System.out.printf, except that format returns the formatted String rather than displaying it in a command window. Line 17 displays the greeting in a message dialog, just as we did in Fig. 3.12.
Read now
Unlock full access