Also posted at: Boolean Array And Sorting The Elements Within It - Java | Dream.In.Code
Type: Posts; User: Norm
Also posted at: Boolean Array And Sorting The Elements Within It - Java | Dream.In.Code
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....
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?
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?