From java tutorial:
System.out.format("%s: %s"
+ " has bowed to me!%n",
this.name, bower.getName());
But in java SE7 there are not such method.
Which method I should use?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s
String.formatorSystem.out.printf.String.formatreturns the result in aString;System.out.printfprints the result to the console.(And jbx is also correct: why do you say that there’s no such method in Java SE 7?).