码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
ZigZag Conversion
class Solution {public: enum { down = 0, up = 1, }; string convert(string s, int numRows) { string result; int index = 0; in...
分类:其他好文   时间:2015-06-20 11:46:31    阅读次数:124
[LeetCode-JAVA] Basic Calculator
题目:Implement a basic calculator to evaluate a simple expression string.The expression string may contain open(and closing parentheses), the plus+or mi...
分类:编程语言   时间:2015-06-20 11:46:17    阅读次数:185
mybatis+spring整合入门案例
com.frank.domain User.java 1 package com.frank.domain; 2 3 public class User { 4 private Integer id; 5 private String name; 6 private In...
分类:编程语言   时间:2015-06-20 11:45:20    阅读次数:181
Android中关于字符串的拆分与组合
List list = new ArrayList(); //list中添对象 list.add("a"); list.add("b"); list.add("c"); StringBuffer sb = new StringBuffer();//不定长数组 for(String s:list){         sb.append(s) } System.out.println...
分类:移动开发   时间:2015-06-20 10:37:00    阅读次数:139
Objective-C----Block 、数组排序
直接上代码://写?一个 返回值为整型 参数为NSString(仅?一个参 // 数)的block,实现将字符串转换为整型的功能。// int (NSString *string) { // return [string intValue] ; // }// 把^int (NSString *string)赋值给int (^myBlock)(NSString *)...
分类:编程语言   时间:2015-06-20 10:35:04    阅读次数:120
委托修饰符的一点疑惑。
写字段的时候一般会这么写:1 private string _msg;2 3 public string Msg4 {5 get { return _msg; }6 set { _msg = value; }7...
分类:其他好文   时间:2015-06-20 10:33:13    阅读次数:108
网速计算以及读文件
public static String formatNetSpeed(long bytes) { String result = size + " B/s"; if (size < 1<<10) { } else if (size < 1<<20) { result = String.format("%.1f KB/s", si...
分类:其他好文   时间:2015-06-20 09:16:12    阅读次数:107
黑马程序员——统计一个字符串中各个字符出现的次数
统计一个字符串中各个字符出现的次数 import java.util.Iterator; import java.util.Set; import java.util.TreeMap; public class TreeMapDemo { //统计一个字符串中相应字符出现的次数 public static void main(String[] args) { // Stri...
分类:其他好文   时间:2015-06-20 09:12:33    阅读次数:110
黑马程序员——工具类Collections的使用
工具类Collections的使用 import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; public class CollectionsDemos { public static void main(String[] args) { // TODO Auto...
分类:其他好文   时间:2015-06-20 09:11:47    阅读次数:116
周期串(Periodic Strings, UVa455)
A character string is said to have period k if it can be formed by concatenating one or more repetitions of another string of length k. For example, the string “abcabcabcabc” has period 3, since it is...
分类:其他好文   时间:2015-06-20 09:11:33    阅读次数:127
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!