码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
JavaScript 对象
JavaScript对象JavaScript 中的所有事物都是对象:字符串、数值、数组、函数...此外,JavaScript 允许自定义对象。所有事物都是对象JavaScript 提供多个内建对象,比如 String、Date、Array 等等。 对象只是带有属性和方法的特殊数据类型。布尔型可以是一...
分类:编程语言   时间:2015-06-02 00:15:56    阅读次数:129
JavaScript 字符串(String) 对象
JavaScript字符串(String)对象String 对象用于处理已有的字符块。JavaScript 字符串一个字符串用于存储一系列字符就像 "John Doe".一个字符串可以使用单引号或双引号:实例var carname="Volvo XC60";var carname='Volvo XC...
分类:编程语言   时间:2015-06-02 00:15:38    阅读次数:141
Spring学习笔记——关于Spring注解扫描不能注入new对象问题
这几天Leader让我用工厂模式对部分业务逻辑代码进行重构,过程是痛苦的(这里就不详细说了),结果很甜蜜。下面记录一下我在重构过程中遇到一个问题。 部分代码如下:@service(orderFactory) public class OrderFactory implements IOrderFactory{ public OrderCreate factory(String type){...
分类:编程语言   时间:2015-06-01 22:49:34    阅读次数:168
解题报告 之 POJ1226 Substrings
POJ1226 Substrings,字符串,暴力,最长公共子串 You are given a number of case-sensitive strings of alphabetic characters, find the largest string X, such that either X, or its inverse can be found as a substring of any of the given strings....
分类:其他好文   时间:2015-06-01 22:48:24    阅读次数:223
Word Break -- leetcode
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words. For example, given s = "leetcode", dict = ["leet"...
分类:其他好文   时间:2015-06-01 22:47:24    阅读次数:159
Java的static
public class Test02 { public static void main(String[] args){ int x = 5; System.out.println(x); } } 这个时候int前面是不能加static的 public class Test02 { static int x = 5; public static void main...
分类:编程语言   时间:2015-06-01 22:45:34    阅读次数:129
POJ3693:Maximum repetition substring(后缀数组+RMQ)
Description The repetition number of a string is defined as the maximum number R such that the string can be partitioned into R same consecutive substrings. For example, the repetition number of "a...
分类:编程语言   时间:2015-06-01 22:36:06    阅读次数:262
Java竞赛可能会用到的东西
以下部分内容并非原创,原作者见到还请谅解~大数String s=”12345”;BigInteger c=BigInteger.valueOf(s);格式输出System.out.printf("%+8.3f\n", 3.14); //"+"表示后面输出的数字会有正负号,正的+,负的- ;8.3f表...
分类:编程语言   时间:2015-06-01 22:30:52    阅读次数:187
Go命令行参数解析flag包
go语言提供的flag包可以解析命令行的参数,代码:package main import ("flag""fmt") func main() {//第一个参数,为参数名称,第二个参数为默认值,第三个参数是说明username := flag.String("name", "", "Input yo...
分类:其他好文   时间:2015-06-01 22:27:48    阅读次数:255
asp.net mvc url应用
//url加密与解密string res1 = HttpUtility.UrlEncode("7Z2K5Lgk/iI=");//值是7Z2K5Lgk%2fiI%3dstring res2 = HttpUtility.UrlEncode(res1);//值是: 7Z2K5Lgk%252fiI%253d...
分类:Web程序   时间:2015-06-01 22:24:41    阅读次数:172
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!