Java Output Formatting

  • + 0 comments

    Hi, Thanks for this.

    If I need to '1' instead of '0' for integer, then how to modify this as

    ("%-15s%13d%n", s1, x) is not producing desired o/p.

    Would appreciate if you may help with this.