Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.07 seconds.

  1. Thread: AddEmUp

    by aussiemcgr
    Replies
    11
    Views
    3,170

    Re: AddEmUp

    Here is what it should be:


    import java.util.*;

    public class Test
    {

    public static void main(String[] args)
    {
  2. Thread: AddEmUp

    by aussiemcgr
    Replies
    11
    Views
    3,170

    Re: AddEmUp

    I'll have a look at work. It may be because you named the Array "Array" (because thats a reserved word I think), but I'll have a look.

    Also, remove your call to addElements(Array, 0) from your...
  3. Thread: AddEmUp

    by aussiemcgr
    Replies
    11
    Views
    3,170

    Re: AddEmUp

    Ok, to do recursion you need at least 2 methods. 1 method to begin the recursion, and 1 method to do the recursion. The 1st method will simply call the 2nd method with the starting case. The 2nd...
Results 1 to 3 of 3