- 博客(8)
- 资源 (1)
- 收藏
- 关注
原创 java 生成不重复的随机数
java 使用数组生成不重复的随机数 public class TestRandom { public static void main(String[] args) { //定义一个数组存放需要随机的数 int[] ints = new int[33]; for (int i = 0; i < ints.length; i++) { ints[i] = i;...
2017-05-07 18:01:57
1403
1
翻译 java 编程思想 末端哨兵实现内部链式存储机制
public class LinkedStack { //链表上的每个节点的抽象,用来个字段来表示该节点应该存有的信息 private static class Node{ U item; Node next; Node(){ item = null; next = null; } Node(U item,Node next){ this.item = i
2017-05-01 11:45:09
878
1
原创 Java 使用Map对出现的字符进行计数
public class Test{ public static void main(String[] args) { Map map = new HashMap(); String string = "BbB I have a good friend, we met each other when I was five years old. She is my neighbor and t
2017-04-06 21:24:43
3007
原创 C#和Java 网络编程实例核心代码
共同点: 服务器端都需要俩个Socket,一个用来监听,一个用来和客户端通信; 都需要绑定端口、Ip地址和协议; 不同点: 构造方法不同,C#的Socket要设置协议类型,Java的Socket的默认为Tcp协议,UDP用dategramSocketd;C#服务器端和客户端Socket的构造方法相同,Java中服务器用ServerSocket,而客户端用Socket; JAVA
2017-01-05 21:33:39
377
原创 C#随机生成不重复的数值
class Program { static void Main(string[] args) { //定义一个List,存放所有要随机的数字, List ints = new List(); for (int i = 1; i {
2017-01-04 20:39:26
1358
1
SqlReplaceUtil.jar
2020-04-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人