We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
My solution which is correct still counts as the wrong , im not sure what the cause of this is but my output conforms to the rules perfectly. PFB my code.
System.out.printf("%-15s %03d%n",s1,x);
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java Output Formatting
You are viewing a single comment's thread. Return to all comments →
My solution which is correct still counts as the wrong , im not sure what the cause of this is but my output conforms to the rules perfectly. PFB my code. System.out.printf("%-15s %03d%n",s1,x);