errCodeMap是要遍历的Map,
Iterator it = errCodeMap.entrySet().iterator();
while(it.hasNext()){
Map.Entry entry = (Entry) it.next();
String key = entry.getKey().toString(); // 返回的对应map的key值
String val...
分类:
编程语言 时间:
2015-06-09 21:58:50
阅读次数:
136
先看一段代码:
public static void main(String[] args) {
System.out.println(3 + +3);// 6
System.out.println(3 - -3);// 6
System.out.println(3 + + +3);// 6
System.out.println(3 - - -3);// 0
}
其实连加和连...
分类:
编程语言 时间:
2015-06-09 21:57:21
阅读次数:
124
Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega...
分类:
其他好文 时间:
2015-06-09 21:51:52
阅读次数:
86
Given a string S, you are allowed to convert it to a palindrome by adding characters in front of it. Find and return the shortest palindrome you can f...
分类:
编程语言 时间:
2015-06-09 21:40:38
阅读次数:
1582
父类public class person { public static string markup; static person() { markup = "markup"; } /...
分类:
其他好文 时间:
2015-06-09 21:31:37
阅读次数:
131
out和ref的用法和区别函数参数默认是值传递,也就是“复制一份”看个栗子:static void Main(string[] args) { int age = 10; IncAge(age); Console.Wri...
分类:
其他好文 时间:
2015-06-09 21:29:09
阅读次数:
122
import java.lang.reflect.Method; public class Obj { int obj_i = 11; Integer obj_int = new Integer(obj_i); ? ? public void println(String str,boolean b){ ? ? int fun_i = 99; ? ? Integer fun_in...
分类:
编程语言 时间:
2015-06-09 20:17:12
阅读次数:
132
public class HighFrequencyWord {
public static void findFrequencyWord(String str) {
Collection al=new ArrayList();
Map map=new HashMap();
String tempStr = str;
...
分类:
编程语言 时间:
2015-06-09 20:07:17
阅读次数:
176
Android-spinner
一 Adapter概念
spinner:下拉栏里面的TextView
指定系统spinner:在xml文件里面的spinner中的属性android:entries="@array/string_array"
适配器:将数据源绑定到界面组件
数据源:
cursor数据库集
ArrayList数组集合
适配结构:
数据源(Data so...
分类:
移动开发 时间:
2015-06-09 20:06:24
阅读次数:
144
1.使用java原生HttpURLConnection访问web服务。public class RTBClient {
private String url = http://localhost;
private String port = "8080";
private String path = "/RTBServer/RTBServer";
public RTBClient...
分类:
Web程序 时间:
2015-06-09 20:03:32
阅读次数:
160