摘要:
1 package com.cn.sortt; 2 3 public class BubbleSort { 4 //冒泡排序1 5 public static void bubble1(int[] array){ 6 for (int i = 0 ;i i;j-- ){ 33 if(array[j] > array[j-... 阅读全文
posted @ 2017-02-04 17:44
孜然风味
阅读(192)
评论(0)
推荐(0)
摘要:
return -1; } 阅读全文
posted @ 2017-02-04 16:39
孜然风味
阅读(244)
评论(0)
推荐(0)
摘要:
1.Integer转换成int的方法 Integer i = new Integer(10); int k = i.intValue();即Integer.intValue(); 2.int转换成Integer int i = 10; Integer it = new Integer(i); 3.S 阅读全文
posted @ 2017-02-04 16:07
孜然风味
阅读(312)
评论(0)
推荐(0)
摘要:
http://tool.oschina.net/apidocs/apidoc?api=jdk-zh 阅读全文
posted @ 2017-02-04 13:13
孜然风味
阅读(341)
评论(0)
推荐(0)
摘要:
1、设立集合的时候要把变量设上 2、int转成Integer类型 int a = 111;Integer b = new Integer(a); 3、每个步骤走完了以后都要记得return 4、BigDecimal是一个不失精度的加减乘除都能用到的方法,pow是一个求n次方的方法,求利息和利率的题目 阅读全文
posted @ 2017-02-04 11:28
孜然风味
阅读(167)
评论(0)
推荐(0)
摘要:
1000以内有35对双素数 public class Sushu { public static void main(String[] args) { // TODO Auto-generated method stub int qian = 3;//记录前一个素数 int l = 0;//计数器 阅读全文
posted @ 2017-02-04 09:57
孜然风味
阅读(432)
评论(0)
推荐(0)

浙公网安备 33010602011771号