摘要: package review20140419;/* * do while 和 while 的区别 */public class Test3 { //程序的入口 public static void main(String[] args) { /*定义变量a1,a2,b1,b2*/ int a1=1; 阅读全文
posted @ 2016-04-19 20:02 yegcf 阅读(203) 评论(0) 推荐(0)
摘要: package review20140419;/* * 统计一个班级的成绩,并统计优良中差和不及格同学个数以及求平均分 */public class Test2 { //程序的入口 public static void main(String[] args) { //定义一个数组统计班级里所有学生的 阅读全文
posted @ 2016-04-19 19:41 yegcf 阅读(392) 评论(0) 推荐(0)
摘要: package review20140419;/* * 遍历数组 */public abstract class Test1 { //程序入口 public static void main(String[] args) { //定义新的数组 int arr[]=new int[]{1,2,3,4, 阅读全文
posted @ 2016-04-19 19:00 yegcf 阅读(1216) 评论(0) 推荐(0)
摘要: package review20140418;/* * 声明变量(1.区分大小写 2.首写字母不能以数字开头 * 3.不能使用关键字 4.可以一$字母,下划线开头) */public class Test2 { //程序的入口 public static void main(String[] arg 阅读全文
posted @ 2016-04-19 18:47 yegcf 阅读(129) 评论(0) 推荐(0)