1.

void looper() {
int x = 0;
one: while (x < 10) {
two: System.out.println(++x);
if (x > 3) {
break two;
}
}
}

break适用场合:<1>switch<2>for/while循环

if语句中也不能用~【注】将two换成one就可以了。

2.

"this" keyword can not appears in the main method, because static method can not references a member variable like "this";

3.这样赋值也是合法的:

Integer[] a=new Integer[5];
for(int i=0;i<5;a[i++]=i*10);

4.方法名和类名相同,而且也不是构造子,也是合法的,不过不推荐而已。

public class ClazzA {
public void ClazzA(){
return;
}
}

最新文章

  1. QQ远程桌面的使用
  2. .net中自定义过滤器对Response内容进行处理
  3. windows命令行
  4. 教你利用iframe在网页中显示天气
  5. vim 配置文件 ,高亮+自动缩进+行号+折叠+优化
  6. Android Training精要(六)如何防止Bitmap对象出现OOM
  7. hdu 3460
  8. Swift - 设置UIView的背景色和背景图片
  9. django admin.py settings 操作
  10. leangoo
  11. c#模拟js escape方法(转)
  12. beautifulSoup模块
  13. IO流之字节流知识总结
  14. 【机器学习实战 第九章】树回归 CART算法的原理与实现 - python3
  15. 小程序wx:for Do not set same key \&quot;NaN\&quot; in wx:key.
  16. RabbitMQ中的RPC实现
  17. MySQL的FIND_IN_SET()函数
  18. Redis在python中的使用
  19. ASP.NET Newtonsoft 序列化反序列化
  20. 8皇后问题(c++/python实现)

热门文章

  1. Java-JDK动态代理(AOP)使用及实现原理分析
  2. 2017-01-26--编译Linux内核2.6.30版本报错解决
  3. linux内存优化之手工释放linux内存
  4. MeteoInfoLab脚本示例:加载地图图层
  5. pmm-server监控mysql
  6. openresty上安装waf
  7. go 数组指针 指针数组
  8. centos8平台:用fontconfig安装及管理字体(fc-list/fc-match/fc-cache)
  9. centos8使用timedatectl管理时间
  10. linux修改环境变量后无法登录