Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jul 2007
    Location
    FL, USA
    Posts
    153
    Thanks
    13
    Thanked 0 Times in 0 Posts

    array of type boolean

    guys I've been given a runner that has this array of type boolean

    PHP Code:
    boolean[] results q.checkAnswers(answers); 
    and I'm expected to write the classes for this runner, but I suspect that the declaration above is a reference to an already declare array of type boolean... also when I implement the checkAnswers() method, I'm getting wrong object type....
    thanks
    ____________________
    www.pctechtips.org

  • #2
    Regular Coder
    Join Date
    Jul 2007
    Location
    FL, USA
    Posts
    153
    Thanks
    13
    Thanked 0 Times in 0 Posts
    the declaration is pretty straight forward

    PHP Code:
    private boolean[] results = new boolean[4]; 
    and the method

    PHP Code:
    public boolean[] checkResults(ArrayList answers)
    {
    //code goes here
    return results

    thanks
    ____________________
    www.pctechtips.org


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •