Document

题目:

运行结果:以及图示分析

源代码:

 1 package com.mon11.day18;
 2 /** 
 3 * 类说明 :
 4 * @author 作者 :chenyanlong
 5 * @version 创建时间:2017年11月18日 
 6 */
 7 public class Demo1 {
 8 
 9     static boolean foo(char c){
10         System.out.println(c);
11         return true;    
12     }
13     
14     public static void main(String[] args) {
15         int i=0;
16         
17         for(foo('A');foo('B')&&(i<2);foo('C')){
18             i++;
19             foo('D');
20         }
21     }
22 }
View Code
原文地址:https://www.cnblogs.com/chenyanlong/p/7857485.html