import static java.lang.System.out, while (false)

 

 

 

import static java.lang.System.out;
public class hello
{
    public static void main(String[] args)
    {
        boolean bool = false;
        while (false) //这里如果直接换成while (false) 编译时提示error: unreachable statement
        {
            out.println("work is like a capricious lover..."); //这里只用了out.println,而不是System.out.println; 原因是开头的import
        }
        out.println("no matter what, I'll run.");
    }
}

 

posted @ 2020-05-24 22:29  profesor  阅读(214)  评论(0编辑  收藏  举报