new here, but I'm in my mind. I have my program for work, but I just need help with formatting when printing. A.
if(count == 3) System.out.printf ("%-15s %15s %15s %15s %15s %n", n, " is compatible with ",dates[k],dates[k+1],dates[k+2]);
My conclusion
Stacey Francis is compatible with Owen Farrell Jack Clifford Joshua Watkins
I would like my result to be (without repeating the name stacey francis or "compatible with":
Stacey Francis is compatible with Owen Farrell Jack Clifford Joshua Watkins
Just wondering how to do this?
Thanks,
Kirsty
source share