问题描述
for(int i = 0;i<4;i++) {//行数
for(int j = 0;i<3;j++) {//列数
ImageIcon icon = new ImageIcon("图片1_"+(i*3+j+1)+".gif");
cell[i*3+j] = new Cell(icon);
cell[i*3+j].setLocation(j*150+20, i*150+20);
this.add(cell[i*3+j]);
}
}
问题解答
回答1:第二个循环j打成i了,死循环
问题描述
for(int i = 0;i<4;i++) {//行数
for(int j = 0;i<3;j++) {//列数
ImageIcon icon = new ImageIcon("图片1_"+(i*3+j+1)+".gif");
cell[i*3+j] = new Cell(icon);
cell[i*3+j].setLocation(j*150+20, i*150+20);
this.add(cell[i*3+j]);
}
}
问题解答
回答1:第二个循环j打成i了,死循环相关文章:1. nginx - 负载均衡如何计算同一公网地址下所有局域网ip访问量?2. 如何查看当前服务器生效中的nginx配置信息3. Nginx 内置变量怎么用的 . 我写的这条怎么不可行 .4. rewrite - 求一个nginx个性域名的重写规则5. django - nginx不能应用mysite_nginx.conf中的配置,始终以默认配置启动6. nginx同一端口代理问题7. nginx - 两次反向代理后转向失效8. php-nginx - 使用Nginx,只有一个前台页面报readv() failed (104: Connection reset by peer)9. 伪静态 - nginx规则求助10. php-nginx - 配置nginx + php + spwan-fcgi,报错 502 Bad Gateway以及php-fcgi无法启动
网公网安备:皖ICP备2020019022号-8 Copyright ¢ 2020-2025 Powered by V1.8 All Rights Reserved 技术支持:乐呵呵网
声明:本站所有资源以学习为主