MainActivity如下:
package cc.c;
import java.util.List;
import android.os.Bundle;
import android.os.Process;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Bu...
分类:
移动开发 时间:
2014-06-05 10:47:50
阅读次数:
299
通过intent调用打电话,打开地图、打开浏览器,创建邮件,创建事件的操作
截图:
代码
package com.example.hellointent;
import java.util.Calendar;
import java.util.List;
import org.apache.http.protocol.HTTP;
import android.net.Uri;
...
分类:
其他好文 时间:
2014-06-05 08:01:16
阅读次数:
281
本文出处:http://blog.csdn.net/chaijunkun/article/details/27361453,转载请注明。由于本人不定期会整理相关博文,会对相应内容作出完善。因此强烈建议在原始出处查看此文。
最近在做一套系统,其中要求若干个Worker服务器将心跳信息都上报给中央服务器。当一定时间中央服务器没有得到心跳信息时则认为该Worker失效了,发出告警。...
分类:
其他好文 时间:
2014-06-05 07:03:13
阅读次数:
559
HashMap sMap = new HashMap();
sMap.put("张三", 90L);
sMap.put("李四", 79L);
sMap.put("王五", 88L);
sMap.put("赵六", 76L);
ArrayList> list = new ArrayList>(sMap.entrySet());
Collections...
分类:
其他好文 时间:
2014-06-05 07:02:28
阅读次数:
211
C++11中的初始化列表构造函数(Initialize_list Constructors)是将std::initializer_list作为第一个参数的构造函数,并且没有任何其他参数(或者其他参数具有默认值)。例如:
#include
#include //必须包含该头文件
#include
using namespace std;
class A
{
private:
vector m...
分类:
编程语言 时间:
2014-06-05 03:32:22
阅读次数:
287
1.Collection
和 Collections
的区别。
Collection
是集合类的上级接口,继承于他的接口主要有
Set 和
List.
Collections 是针对集合类的一个帮助类,他提供一系列静态方法实现对各种集合的搜索、排序、线程安全化等操作。
2.HashMap
和 Hashtable
的区别。
HashMap 是...
分类:
编程语言 时间:
2014-06-05 01:25:20
阅读次数:
296
【题目】
Given a non-negative number represented as an array of digits, plus one to the number.
The digits are stored such that the most significant digit is at the head of the list.
【题意】
给定一个非负整数,这个表示为一个数字数组。计算这个整数加1后的值。
【思路】
从低位到高位依次相加,注意处理进...
分类:
其他好文 时间:
2014-06-05 01:24:44
阅读次数:
250
一、CollectionAPI
集合是一系列对象的聚集(Collection)。集合在程序设计中是一种重要的数据接口。Java中提供了有关集合的类库称为CollectionAPI。
集合实际上是用一个对象代表一组对象,在集合中的每个对象称为一个元素。在集合中的各个元素的具体类型可以不同,但一般说来,它们都是由相同的类派生出来的(而这一点并不难做到,因为Java中的所有类...
分类:
编程语言 时间:
2014-06-04 21:48:38
阅读次数:
381
??
import java.io.IOException;
import java.io.StringReader;
import java.util.List;
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.JDOMException;
import org.jdom.Namespace;...
分类:
其他好文 时间:
2014-06-04 21:45:59
阅读次数:
228