What will be the output of the program?
class BoolArray
{
boolean [] b = new boolean[3];
int count =
void set(boolean [] x, int i)
{
x[i] = true;
++count;
}
public static void main(String [] args)
{
BoolArray ba = new BoolArray();
ba.set(ba.b, 0);
ba.set(ba.b, 2);
ba.test();
}
void test()
{
if ( b[&& b[| b[)
count++;
if ( b[&& b[(++count - 2)] )
count += System.out.println("count = " + count);
}
}
|