码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果
随机生成四位验证码
namespace 随机生成验证码{ class Program { static void Main(string[] args) { while (true) { string s = "abcdefghijklmnopqrstuvwxyz"; string t = "李青用强力的回旋踢击退地方...
分类:其他好文   时间:2015-04-02 22:25:07    阅读次数:217
java中23种设计模式之18-原型模式(Prototype pattern)
class Something{ public String something=null;}class Prototype implements Cloneable{ private String name; public Something aSomething=new Something();...
分类:编程语言   时间:2015-04-02 22:24:14    阅读次数:229
关于字符串反转的几种方法的比较
下面先上代码: class Program { static void Main(string[] args) { string str = "12345"; const int count = 10000; ...
分类:其他好文   时间:2015-04-02 22:21:21    阅读次数:207
java中23种设计模式之13-组合模式(composite pattern)
import java.util.LinkedList;abstract class Company{ private String name; public void setName(String name) { this.name=name; } public String getName()....
分类:编程语言   时间:2015-04-02 22:13:33    阅读次数:125
Base64中文乱码的问题
web端和app端base64解码时中文乱码的问题.web端:String data = new BASE64Encoder().encode(data.getBytes("UTF-8"));app端String data2 = new String(Base64.decode(data), "UT...
分类:其他好文   时间:2015-04-02 22:13:15    阅读次数:140
Datetime中yyyy-MM-dd-hh-mm-ss的格式
namespace yyyy_MM_dd_hh_mm{ class Program { static void Main(string[] args) { while (true){ try { Console.WriteLine("请输入您的出生年月日"); DateTime dt = Conve...
分类:其他好文   时间:2015-04-02 22:09:40    阅读次数:125
LeetCode - Valid Parentheses
题目意思非常简单,判断所给字符串中的括号是否匹配,需要注意的问题:)(这样是不匹配的。 public class Solution { public boolean isValid(String s) { Stack stack = new Stack(); ...
分类:其他好文   时间:2015-04-02 22:07:35    阅读次数:146
Android HttpClient
使用Apache提供的HttpClient接口进行HTTP操作。 ??? GET方法: //?http地址? String?httpUrl?=?; //HttpGet连接对象? HttpGet?httpRequest?=?new?HttpGet(httpUrl); //取得HttpClient对象? ...
分类:移动开发   时间:2015-04-02 21:03:40    阅读次数:157
Valid Parentheses
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "()[]{}" are all vali...
分类:其他好文   时间:2015-04-02 21:00:04    阅读次数:105
Java考查“==”和equals
/** * */ package com.you.demo; /** * @author YouHaiDong * @date 2015-04-02 */ public class Welcome { /** * @param args */ public static void main(String[] args) { String str1 = "you"...
分类:编程语言   时间:2015-04-02 20:58:08    阅读次数:157
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!