码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
java国际化中,查找不同国家的语言代码和对应的语言
packagearg.fkjava.structs.actio;importjava.util.Locale;publicclassTest{publicstaticvoidmain(String[]args){Locale[]locals=Locale.getAvailableLocales();for(Localelocale:locals){System.out.println(locale.getLanguage()+"=>"+locale.getDisplayLanguage());}}}
分类:编程语言   时间:2015-02-03 07:10:33    阅读次数:204
LeetCode - 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 for "abcabcbb" is "abc", which the length is 3. For ...
分类:其他好文   时间:2015-02-03 07:03:24    阅读次数:139
JSP 页面传值
使用session会话传值并重定向页面 //得到用户提交的值 String name = request.getParameter("username"); String pwd = request.getParameter("password"); //创建HttpSessio对象 HttpSe....
分类:Web程序   时间:2015-02-03 06:57:45    阅读次数:167
GTA项目 二, JSON接口开放跨域访问
public class CORSAttribute : ActionFilterAttribute { public string Domains { get; set; } public CORSAttribute( string domains) ...
分类:Web程序   时间:2015-02-03 01:51:35    阅读次数:137
GTA项目 一, 包装外部WebService
外部WebService返回的是xml太重了. 而JSON是web的新标准.所以要包装一下.使用NewtonSoft.JSON的dll里面的JsonConvert.SerializeXmlNode方法 private string xml2json(string xml, string...
分类:Web程序   时间:2015-02-03 01:50:07    阅读次数:198
java基础 阿里
原文地址:http://blog.csdn.net/free0sky/article/details/7927275 一、String,StringBuffer, StringBuilder 的区别是什么?String为什么是不可变的? 答: ? 1、String是字符串常量,StringBuffer和StringBui...
分类:编程语言   时间:2015-02-03 00:46:00    阅读次数:338
POJ 2406 Power String(KMP)
解题思路: 依旧是利用next数组的性质,m % (m - next[m]) == 0; #include #include #include #include #include #include #include #include #include #define LL long long #define FOR(i,x,y) for(int i=x;i<=y;i++) u...
分类:其他好文   时间:2015-02-03 00:45:22    阅读次数:142
StringTokenizer
StringTokenizer是一个用来分隔String的应用类,相当于String的split方法。构造函数public StringTokenizer(String str)public StringTokenizer(String str, String delim)public String...
分类:其他好文   时间:2015-02-03 00:39:04    阅读次数:235
LeetCode --- 30. Substring with Concatenation of All Words
题目链接:Substring with Concatenation of All Words You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatena...
分类:其他好文   时间:2015-02-02 23:09:55    阅读次数:253
Hibernate 基本增删改查操作
本文将要介绍Hibernate基本的增删改查的操作的实现,首先我们创建一个对象实例。一般情况下会创建User,本例也不例外需要创建这样的对象。 【转载使用,请注明出处:http://blog.csdn.net/mahoking】 User对象 public class User { private Integer id; private String userName; privat...
分类:Web程序   时间:2015-02-02 23:07:44    阅读次数:206
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!