码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
hdu 1501 Zipper dfs
题目链接: HDU - 1501Given three strings, you are to determine whether the third string can be formed by combining the characters in the first two strings....
分类:其他好文   时间:2015-04-19 00:57:26    阅读次数:207
工具类:全角半角相互转换
```java /** * 半角转全角 * @param input String. * @return 全角字符串. */ public static String ToSBC(String input) { char c[] = input.toCharArray(); for (int i = 0; i < c.length; i++) { if (c[i] == ...
分类:其他好文   时间:2015-04-18 23:54:35    阅读次数:300
java(引入一个中间变量,不引入中间变量)交换两个变量的值
一、描述 在不引入其它变量的情况下交换两个数,引入一个变量做中介,交换两个数的值。 二、源代码 package tong.yue.sort; public class SwapTwoValues { /** * @param args */ public static void main(String[] args) { int a = 10,b = 20; swap...
分类:编程语言   时间:2015-04-18 23:47:24    阅读次数:242
android Gson解析问题
1,个人推荐使用这个库来解析 JSON,不过我在使用时遇到了这如下问题 报 com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was STRING at line 1 column 后来我改了一下 服务器返回的 JSON 由 原来的[] 最外层 改成...
分类:移动开发   时间:2015-04-18 23:46:06    阅读次数:187
Android 线程更新UI报错 : Can't create handler inside thread that has not called Looper.prepare()
MainActivity中有一个按钮,绑定了save方法public void save(View view) { String title = titleText.getText().toString(); String timelength = lengthText....
分类:移动开发   时间:2015-04-18 23:40:08    阅读次数:251
局部代码块和构造代码块
局部代码块 1 package com_package2; 2 3 public class Person3Demo { 4 public static void main(String[]args) 5 { 6 Person3 p = new Person3();...
分类:其他好文   时间:2015-04-18 23:35:10    阅读次数:218
Javascript手记-基本类型和引用类型
1:ecmascript包含2中不同的数据类型,基本数值类型和引用数值类型.基本数据类型是简单的数据段,引用类型是指那些可能由多个值构成的对象。 1.1:常用的基本类型:Undefined,Null,Boolean,Number,String 1.2:引用类型的值是保存在内存中的对象。与其它语言.....
分类:编程语言   时间:2015-04-18 23:32:17    阅读次数:248
Java 常用类
数组copy类:public class TestArrayCopy{ public static void main(String[] args){ String[] s={"Microsoft","Apple","Google","Baidu"}; ...
分类:编程语言   时间:2015-04-18 23:29:56    阅读次数:141
Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:其他好文   时间:2015-04-18 23:29:41    阅读次数:123
php_audit--命令注入攻击
php中可以使用如下5个函数来执行外部的应用程序或函数: string system(string command,int &return_var) 注:command要执行的命令,return_var 存放执行命令的执行后的状态值; string exec(string comm...
分类:Web程序   时间:2015-04-18 23:24:08    阅读次数:248
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!