摘要: package com.chongrui.test;//运用三目运算符及扫描器实现输入判断奇偶数import java.util.Scanner;public class test { public static void main(String[] args){ Scanner scan = ne 阅读全文
posted @ 2016-12-24 21:29 tantanba 阅读(297) 评论(0) 推荐(0) 编辑
摘要: package com.chongrui.test;//不用其它变量进行变量互换import java.util.Scanner; //导入扫描器public class test { public static void main(String[] args){ Scanner scan = ne 阅读全文
posted @ 2016-12-24 21:02 tantanba 阅读(125) 评论(0) 推荐(0) 编辑
摘要: package com.chongrui.test;//测试全局变量及局部变量的输出结果的异同public class Gess { static int times = 1; public static void main (String[] args){ int times = 4; int t 阅读全文
posted @ 2016-12-24 17:43 tantanba 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 逻辑运算符及按位或与非比较难理解先放着87 阅读全文
posted @ 2016-12-24 17:31 tantanba 阅读(160) 评论(0) 推荐(0) 编辑
摘要: package com.chongrui.test;//测试全局变量及局部变量的输出结果的异同,成员变量如果与局部变量相同,暂时是失效的,如果要调用成员变量需要:类名+变量名public class Gess { static int times = 1; //定义成员变量 public stati 阅读全文
posted @ 2016-12-24 17:06 tantanba 阅读(156) 评论(0) 推荐(0) 编辑