I need help making a recursive program that computes the number of odd digits in a number. This is as far as I have gotten.
public class ComputeOddNumbers { /** * @param args the command line arguments */ public static void main(String[] args) { System.out.println("Enter an integer:"); Scanner input=new Scanner(System.in); int number= input.nextInt(); computeoddnumbers(number); System.out.print("There are "+odds+" odd numbers"); } private static int odds; public static void computeoddnumbers(int number) { if(number<10) { increaseoddscount(number); } while(number>10) { increaseoddscount(number%10); } } public static int increaseoddscount(int number) { if(number==1||number==3||number==5||number==7|number==9) { odds++; } return odds; } }