摘要: 2013年1月6日星期日第五讲(运算符续 Operator cont.)第六讲.流程控制语句.Flow.Control.Statement当有若干个变量参与运算时,最终结果取决于什么?举例说明逻辑运算符的短路特性。举例说明自增自减运算符的作用。编程计算:int i = 0;int j = i++ + ++i;int k = --i + i--;计算j和k的值。1 最终结果取决于这些变量中表示范围最大的那个变量2 public class text{ public static void main(String[] args) { int a = 1; int b = 2; int c = 3; 阅读全文
posted @ 2013-01-08 14:39 深云客 阅读(135) 评论(0) 推荐(0) 编辑