码迷,mamicode.com
首页 >  
搜索关键字:Arrays    ( 3585个结果
java数组的实现
动态数组代码: import java.util.Arrays; public class Array<E> { private E[] data; private int size; //构造函数,传入数组的容量capacity的Array @SuppressWarnings("unchecked ...
分类:编程语言   时间:2018-11-15 22:34:07    阅读次数:207
java源码分析-String
重要指数:满星,慢慢品。 public final class String implements java.io.Serializable, Comparable<String>, CharSequence 首先类的声明 没有显式继承 Object ,但是jvm在加载类的时候发现没有父类,自动引入 ...
分类:编程语言   时间:2018-11-14 15:35:37    阅读次数:176
为org.eclipse.swt.widgets.Text 添加可点击的超链接
可以为text, 也可以为label 添加可以点击的超链接。 代码如下: ...
分类:系统相关   时间:2018-11-14 14:26:38    阅读次数:435
Java集合类根接口:Collection 和 Map
前言 在前文中我们了解了几种常见的数据结构,这些数据结构有着各自的应用场景,并且被广泛的应用于编程语言中,其中,Java中的集合类就是基于这些数据结构为基础。 Java的集合类是一些非常实用的工具类,主要用于存储和装载数据 (包括对象),因此,Java的集合类也被成为容器。在Java中,所有的集合类 ...
分类:编程语言   时间:2018-11-13 23:49:43    阅读次数:205
2018-11-12六大排序算法(Java实现)
package sort; import java.util.Arrays; public class SortUtils { public static void main(String[] args) { int[] arr = { 54, 26, 93, 17, 77, 31, 44, 55,... ...
分类:编程语言   时间:2018-11-12 17:44:06    阅读次数:171
2018-11-12二分查找法(Java实现)
package sort; import java.util.Arrays; public class SearchUtils { public static void main(String[] args) { int[] arr = { 54, 26, 93, 17, 77, 31, 44, 5... ...
分类:编程语言   时间:2018-11-12 17:27:46    阅读次数:114
[LeetCode] 40. Combination Sum II
Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numb ...
分类:其他好文   时间:2018-11-11 20:17:13    阅读次数:117
201771010111李瑞红《第十一周学习总结》
实验十一 集合 实验时间 2018-11-8 第一部分:理论总结 1.栈(Stack)也是一种特殊的线性表,是一种后进先出 (LIFO)的结构。栈是限定仅在表尾进行插入和删除运算的线性表,表尾称为栈顶(top),表头称为(bottom)。栈的物理存储可以用顺序存储结构,也可以用链式存储结构。 2.队 ...
分类:其他好文   时间:2018-11-11 15:57:56    阅读次数:129
[LeetCode] 561. Array Partition I
Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which makes sum of ...
分类:其他好文   时间:2018-11-11 10:25:48    阅读次数:211
LeetCode:组合总数II【40】
LeetCode:组合总数II【40】 题目描述 给定一个数组 candidates 和一个目标数 target ,找出 candidates 中所有可以使数字和为 target 的组合。 candidates 中的每个数字在每个组合中只能使用一次。 说明: 所有数字(包括目标数)都是正整数。 解集 ...
分类:其他好文   时间:2018-11-10 15:20:21    阅读次数:160
3585条   上一页 1 ... 95 96 97 98 99 ... 359 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!