Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.07 seconds.

  1. [SOLVED] Re: how to find all occurrences of a number in an array recursivelly

    There is a much better way of doing it, by taking the count variable out. This should also do it:

    public static int displayOccu(int[] a, int n, int i)
    {
    if(i == a.length)
    return 0;
    else...
  2. [SOLVED] Re: how to find all occurrences of a number in an array recursivelly

    Are you wanting to simply count them or return an array of all of their indexes?
Results 1 to 2 of 2