about | help | code help+videos | done | prefs |
addLeadingZero
Write the method: addLeadingZero(int nums). Given any integer parameter - nums - passed into addZero method, the method will "return" a String containing a leading zero and the input number (nums). If the value of nums is zero then return two zeros. addLeadingZero(1) → "01" addLeadingZero(0) → "00" addLeadingZero(12) → "012" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 100 Post-solution available
Copyright Nick Parlante 2017 - privacy