Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. Replies
    6
    Views
    1,695

    Re: Boolean Array and sorting elements within it

    Also posted at: Boolean Array And Sorting The Elements Within It - Java | Dream.In.Code
  2. Replies
    6
    Views
    1,695

    Re: Boolean Array and sorting elements within it

    Yes there is no way. As I said before, boolean variables only hold two values.


    You need to define an array that holds "types of fish".

    I don't know how you are to use the boolean array....
  3. Replies
    6
    Views
    1,695

    Re: Boolean Array and sorting elements within it

    Not sure I understand.
    What is the element that is being searched for
    and what is in the array being searched?

    Is there another array besides the boolean array?
  4. Replies
    6
    Views
    1,695

    Re: Boolean Array and sorting elements within it

    A boolean variable can only have two values: true or false. It can't store types of fish.

    Please explain why you are trying to use boolean.
    Would another data type be better?
Results 1 to 4 of 4