2018年1月26日

数质数及优化程序

摘要: 1 package text; 2 3 public class TestPrimeNumber { 4 public static void main(String[] args){ 5 boolean flag = false; 6 long start = System.currentTimeMillis(); 7 ... 阅读全文

posted @ 2018-01-26 02:11 Aoki894 阅读(98) 评论(0) 推荐(0)

2018年1月17日

循环的使用

摘要: 1 /* 2 * 一般情况下,在无限循环内部要有程序终止语句,使用break实现,若没有,则是死循环。 3 */ 4 package text; 5 import java.util.*; 6 7 public class TextExer { 8 public static void main(String[] args){ 9 Scanner s... 阅读全文

posted @ 2018-01-17 20:18 Aoki894 阅读(120) 评论(0) 推荐(0)

2018年1月15日

位运算符

摘要: 使用位运算符进行变量值互换: 2 3 public class S1 { 4 5 public static void main(String[] args){ 6 int m = 12; 7 int n = 5; 8 System.out.println("m:" + m + 阅读全文

posted @ 2018-01-15 20:38 Aoki894 阅读(116) 评论(0) 推荐(0)

java算术运算符

只有注册用户登录后才能阅读该文。 阅读全文

posted @ 2018-01-15 14:37 Aoki894 阅读(1) 评论(0) 推荐(0)

导航