📜  在 java 代码示例中创建一个布尔数组

📅  最后修改于: 2022-03-11 14:52:24.093000             🧑  作者: Mango

代码示例1
// How can we initialize a boolean array in Java?
  
    boolean[] booleanArray = new boolean[10];
    boolean booleanArray[] = new boolean[7];

// The default value for a boolean array is false.