• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
archur_code
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

文章分类 -  JAVA

 
Collection Map相关知识
摘要:线性表,链表,哈希表是常用的数据结构,在进行Java开发时,JDK已经为我们提供了一系列相应的类来实现基本的数据结构。这些类均在java.util包中。本文试图通过简单的描述,向读者阐述各个类的作用以及如何正确使用这些类。 Collection ├List │├LinkedList │├Array... 阅读全文
posted @ 2014-09-21 10:39 archur_code 阅读(97) 评论(0) 推荐(0)
java二维数组练习
摘要:package 二维数组1;//数组的拷贝System.arraycopy(Object src,int srcPos,Object dest,int destPos,int length)public class TestArray {public static void main(String[... 阅读全文
posted @ 2014-09-18 22:49 archur_code 阅读(282) 评论(0) 推荐(0)
java 冒泡排序
摘要:private static void BubbleSort(int[] a,int n){boolean flag = false;int temp;for (int i = 0; i i; j--) {if(a[j-1]>a[j]){/*temp = a[j-1];a[j-1] = a[j];... 阅读全文
posted @ 2014-09-18 13:20 archur_code 阅读(50) 评论(0) 推荐(0)
java 选择排序
摘要:private static void SelectSort(int []a,int n){for (int i = 0; i < n-1; i++) {int min = i;for (int j = i+1; j < n; j++) {if(a[j]<a[min])min = j;}if(min... 阅读全文
posted @ 2014-09-18 13:18 archur_code 阅读(50) 评论(0) 推荐(0)
java快速排序(递归)
摘要:private static void QuickSort(int[] a,int low,int high){if(low=pivot) high--;a[low] = a[high];while(low<high&&a[low]<=pivot) low++;a[high] = a[low];}a... 阅读全文
posted @ 2014-09-18 13:08 archur_code 阅读(119) 评论(0) 推荐(0)
 

公告


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3