Java的泛型是什么呢, 就是类型的参数化,也就是原本该是确定类型的地方换成了变量,把类型的确定时间向后延迟了。
在之前,学过“重载”的概念,重载是什么呢,举例来说
public class Test{
// 处理整型数据
void receive(int i) {
System.out.println("Received one int data");
System.ou...
分类:
编程语言 时间:
2014-07-22 23:04:34
阅读次数:
324
Google has deprecated HttpClientChoose an HTTP
ClientMost network-connected Android apps use HTTP to send and receive data.
Android includes two HTTP ...
分类:
其他好文 时间:
2014-05-27 01:12:43
阅读次数:
343
EventMachine
本文主要是
EventMachine如何建一个简单的Echo服务器post_init, unbind, receive_date 方法
EchoServer
如下代码,是建立一个简单的EchoServer
#!/usr/bin/env rubyrequire 'rubygems'require 'eventmachine' class Ech...
分类:
其他好文 时间:
2014-05-22 11:14:26
阅读次数:
181
1、使用新建线程结合handler来更新UI线程中的 ListView,快速点击“刷新”,会出现下面的错误:
??
The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not mod...
分类:
其他好文 时间:
2014-05-15 02:30:17
阅读次数:
254
问题描述:RPC(Remote Procedure
Call)远程程序调用:如果要给另一个节点发信息:可以简单写成:call(Msg,Node) -> {server,Node}!{self(),Msg},
receive {ok,Res} -> Resend.ser...
分类:
Web程序 时间:
2014-05-14 13:24:12
阅读次数:
450
服务端1usingSystem;2usingSystem.Collections.Generic;3usingSystem.Text;4usingSystem.Net.Sockets;5usingSystem.Net;6usingSystem.Threading;78namespaceControl...
分类:
其他好文 时间:
2014-05-11 04:28:28
阅读次数:
329
git-push(1) Manual Page
NAME
git-push - Update remote refs along with associated objects
SYNOPSIS
git push [--all | --mirror | --tags] [--follow-tags] [-n | --dry-run] [--receive...
分类:
其他好文 时间:
2014-05-09 20:46:06
阅读次数:
370
Chef develops his own computer program for playing chess. He is at the very beginning. At first he needs to write the module that will receive moves written by the players and analyze it. The module w...
分类:
其他好文 时间:
2014-05-06 23:11:26
阅读次数:
497
iBeacon的数据主要由四种资讯构成,分别是UUID(通用唯一标识符)、Major、Minor、Measured
Power。UUID是规定为ISO/IEC11578:1996标准的128位标识符。Major和Minor由iBeacon发布者自行设定,都是16位的标识符。比如,连锁店可以在Majo...
分类:
其他好文 时间:
2014-04-30 04:40:11
阅读次数:
420