码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
InetAddress,UDP, TCP
InetAddress,UDP, TCP package hanshi.net; import java.net.*; public class count { public static void main(String[] args)throws Exception { InetAddress ia = InetAddress.getLocalHost(); //获取本...
分类:Web程序   时间:2015-06-14 22:54:58    阅读次数:154
[LeetCode] #30 Substring with Concatenation of All Words
You are given a string,s, and a list of words,words, that are all of the same length. Find all starting indices of substring(s) insthat is a concatena...
分类:其他好文   时间:2015-06-14 22:38:16    阅读次数:129
LineNumberReader:记录行号的流
import java.io.*; public class anli { public static void main (String[] args) { linenumber(); //设置行号和读取行号 } public static void linenumber()throws IOException//这里不需要抛出异常 {...
分类:编程语言   时间:2015-06-14 21:33:28    阅读次数:266
文章生成器,Split方法截取字符串。从硬盘读取文件,和向硬盘存储文件参考代码
string x, y; private void button2_Click(object sender, EventArgs e) { textBox2.Clear(); if (button4.Enable...
分类:其他好文   时间:2015-06-14 21:22:12    阅读次数:214
Leetcode 17 Letter Combinations of a Phone Number
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:其他好文   时间:2015-06-14 21:13:20    阅读次数:125
[Google] 出现次数最多的前K个元素
bob, joe, bob, jane, bob, joe, jackbob = 3 joe = 2topN(2) = bob, joe .interface TopN { void insert(String query); List getTop(int n);}用map来存string在数.....
分类:其他好文   时间:2015-06-14 20:02:24    阅读次数:142
用正则表达式截取字符串中的数字
用截取字符串中的数字,代码如下:double d = 0; string str = "hello8023.1314world"; //要截取的字符串 Match m = Regex.Match(str, "\\d+(\\.\\d+){0,1}"); ...
分类:其他好文   时间:2015-06-14 19:48:18    阅读次数:125
loadrunner中大小写字符转换函数封装:
//封装ConvertToXXX函数:int ConvertToUpper(char * sInput, char * sNew){ sInput = (char *)strupr(sInput); lr_save_string(sInput,sNew);} int ConvertToLower(c...
分类:其他好文   时间:2015-06-14 19:45:42    阅读次数:370
Android---intent传递参数
Intent是Activity与Activity之间,Activity与Service之间传递参数的介质,使用Intent和Bundle在组件之间传递数据,而这两种通常实现的是Java基本对象类型和String的传递。 在实际项目中,页面之间传值,除了以上几种,经常还有传递Object对象、List...
分类:移动开发   时间:2015-06-14 19:45:24    阅读次数:117
关于springmvc怎么自动把前台string类型日期字段转换成date类型
关于springmvc怎么把前台string类型日期字段转换成date类型字段,小狼想了好久,阅读spring源代码,发现一个很好玩的注解@DateTimeFormat(pattern="yyyy-MM-dd") 对,就是他,小狼是这么使用的...
分类:编程语言   时间:2015-06-14 18:41:08    阅读次数:174
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!