java 灯泡问题 2022-2-21 11:22 | 630 | 0 | java 25 字 | 2 分钟 /*本题使用2个嵌套for循环即可*/ public class test5 { public static void main(String[] args) { //1、初始化一个布尔类型数组,灯泡原始状态为false即0 boolean[] bulbArr = new boolean[100]; //2、遍历灯泡数组10…