Search:

Type: Posts; User: Samaras

Search: Search took 0.10 seconds.

  1. Replies
    8
    Views
    1,412

    Re: Code for EvenCount

    I agree about autoboxing but look at this



    public String count(String x) {

    if (x < 10 && x % 2 == 0)
    ...
  2. Replies
    8
    Views
    1,412

    Re: Code for EvenCount

    Is it ok to compare a string to a number?I do not think so
Results 1 to 2 of 2