about | help | code help+videos | done | prefs |
Write a method showSign(int nums) that receives an integer parameter and returns a String where the sign of the number is separated from the integer by one space. Only show one sign. If the value of nums is zero, then just return 0. showSign(0) → "0" showSign(10) → "+ 10" showSign(-12) → "- 12" ...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: 110
Copyright Nick Parlante 2017 - privacy