摘要:
赋值操作 class SetValueTest { public static void main(String[] args) { //赋值符号:= int i1 = 10; int j1 = 10; int i2,j2; //连续赋值 i2 = j2 = 10; int i3 = 10 ,j3= 阅读全文
摘要:
分支结构 根据条件选择性执行某段代码;有if...else和switch-case两种分支 循环结构 根据循环条件循环执行某段代码;有while do while 、for 三种循环语句;注JDK1.5提供了foreach循环。遍历集合、数组元素 分支结构介绍 if 语句的三种格式 1. if (条 阅读全文