码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
java 遍历Map并且获取其中的键值
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
java中的连+和连-
先看一段代码: 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
【leetcode】Multiply Strings(middle)
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
Java for LeetCode 214 Shortest Palindrome
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的用法和区别
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
Java 字符串计算频率出现最高的字符
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
Android-spinner 一 Adapter概念 spinner:下拉栏里面的TextView 指定系统spinner:在xml文件里面的spinner中的属性android:entries="@array/string_array"  适配器:将数据源绑定到界面组件 数据源: cursor数据库集 ArrayList数组集合 适配结构: 数据源(Data so...
分类:移动开发   时间:2015-06-09 20:06:24    阅读次数:144
HttpClient几种实现方式
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!