public class Srv { //Returns string w/ int number of spaces before the string public String leftPad(String s, int num){ String result = ""; for(int i = 0; i < num; i++){ result += " "; } //result += s; return result + s; } //answers whether or not char given is a digit public boolean isDigit(char ch){ boolean result = false; if(ch>='0' && ch<='9') result=true; return result; } //takes in string and counts # of digits in string; assume isDigit works public int countDigits(String str){ int count = 0; for(int i = 0; i