+ 5
Please any way to give space between my strings and output
6 odpowiedzi
+ 2
Here's a String.format() example:
String output = String.format("%nAge = %d years%nLeapYear = %d years", noOfYears, leapYear);
System.out.println(output);
0
You could use String.format() instead;
0
Thanks, that is what I want.
0
@dawg, still a beginner, you can cite an example
0
How long have u been here?
0
Should be 2 months, just started learning intensively from Monday. Was in school before, only check in my leisure time