If I want to declare a boolean array, I used to do this:
boolean[] B = new boolean[n];
all the element in array is false
Why couldn't do this?
Boolean[] B = new Boolean[n];
I knew boolean is primitive type while Boolean is its wrapper class. Why it's not like you declare ArrayList, here you use wrapper class instead of primitive class?