Search:

Type: Posts; User: javapenguin

Search: Search took 0.15 seconds.

  1. Replies
    3
    Views
    1,182

    Re: Having trouble completing tester class!

    Also, it appears that you have an extra bracket after your Numbers constructor.

    Anyway, Numbers isn't passed an int as a param anyway.
  2. Replies
    3
    Views
    1,182

    Re: Having trouble completing tester class!

    System.out.println(countDigits(s));

    There's no method called countDigits(s) in that class with the main method.

    Try this

    Number n = new Number();

    System.out.println(n.countDigits(s));
Results 1 to 2 of 3