+ 5
7th Sep 2017, 6:45 AM
Dosunmu Ayanda Yusuf
Dosunmu Ayanda Yusuf - avatar
6 Réponses
+ 2
Here's a String.format() example: String output = String.format("%nAge = %d years%nLeapYear = %d years", noOfYears, leapYear); System.out.println(output);
7th Sep 2017, 7:02 AM
ChaoticDawg
ChaoticDawg - avatar
0
You could use String.format() instead;
7th Sep 2017, 6:55 AM
ChaoticDawg
ChaoticDawg - avatar
0
Thanks, that is what I want.
7th Sep 2017, 6:59 AM
Dosunmu Ayanda Yusuf
Dosunmu Ayanda Yusuf - avatar
0
@dawg, still a beginner, you can cite an example
7th Sep 2017, 7:01 AM
Dosunmu Ayanda Yusuf
Dosunmu Ayanda Yusuf - avatar
0
How long have u been here?
7th Sep 2017, 1:57 PM
Ace Garcia
Ace Garcia - avatar
0
Should be 2 months, just started learning intensively from Monday. Was in school before, only check in my leisure time
7th Sep 2017, 5:39 PM
Dosunmu Ayanda Yusuf
Dosunmu Ayanda Yusuf - avatar