上一页 1 ··· 3 4 5 6 7
摘要: //数组 int myarry[] = new int [5]; //初始化 int[] sh = {1,... 阅读全文
posted @ 2015-10-09 17:02 呼哧呼哧 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 二分查找算法java实现1、算法概念。二分查找算法也称为折半搜索、二分搜索,是一种在有序数组中查找某一特定元素的搜索算法。请注意这种算法是建立在有序数组基础上的。2、算法思想。①搜素过程从数组的中间元素开始,如果中间元素正好是要查找的元素,则搜素过程结束;②如果某一特定元素大于或者小于中间元素,则在... 阅读全文
posted @ 2015-10-09 16:57 呼哧呼哧 阅读(280) 评论(0) 推荐(0) 编辑
摘要: int jh = 10; double jc = 1; double sum = 0;... 阅读全文
posted @ 2015-10-08 08:28 呼哧呼哧 阅读(660) 评论(0) 推荐(0) 编辑
摘要: for (int a=0; a=a; b--) { System.out.print(" "); } for (int c=0; c=d; f--) ... 阅读全文
posted @ 2015-10-06 01:13 呼哧呼哧 阅读(113) 评论(0) 推荐(0) 编辑
摘要: package test;public class test { public static void main(String[] args) { // TODO Auto-generated method stub int a =106; if (a%2>0) { System.ou... 阅读全文
posted @ 2015-09-30 10:30 呼哧呼哧 阅读(109) 评论(0) 推荐(0) 编辑
摘要: package test;public class test { public static void main(String[] args) { // TODO Auto-generated method stub int a =101; if (a / 2 == 0) { Syst... 阅读全文
posted @ 2015-09-30 09:43 呼哧呼哧 阅读(134) 评论(0) 推荐(0) 编辑
摘要: //比较运算符 System.out.println("1 != 0 ="+(1!=0)); System.out.println("1 > 0 ="+(1>0)); //字符串的比较 String gg = "sdsd"; ... 阅读全文
posted @ 2015-09-30 08:17 呼哧呼哧 阅读(122) 评论(0) 推荐(0) 编辑
摘要: package test;public class test { public static void main(String[] args) { // TODO Auto-generated method stub //System.out.println("Hell... 阅读全文
posted @ 2015-09-28 19:55 呼哧呼哧 阅读(111) 评论(0) 推荐(0) 编辑
摘要: public class HelloJava{ public static void main(String[] args){ System.out.println("Hello Java"); }} 阅读全文
posted @ 2015-09-26 11:11 呼哧呼哧 阅读(115) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7