码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
java解惑之再谈String.split()
import java.util.*; public class Sixty{ public static void main(String[] args){ String s = "sur,hs dg,fdg, d ,fd, d,d,dasg,ds"; String[] t = s.split(",\\s*");...
分类:编程语言   时间:2015-04-17 11:45:33    阅读次数:196
F - The Minimum Length HUST1010( kmp计算最小循环节)
F - The Minimum Length Time Limit:1000MS Memory Limit:131072KB 64bit IO Format:%lld & %llu Submit Status Description There is a string A. The length of A is less than 1,000,000. I rewrite it aga...
分类:其他好文   时间:2015-04-17 11:45:01    阅读次数:137
mongoose 实现DBRef查找所有子类信息
产品表var Mongoose = require('mongoose'); var Schema = Mongoose.Schema;var Product = new Schema({ image : { type : String }, description : { type : St...
分类:数据库   时间:2015-04-17 11:40:06    阅读次数:180
87. Scramble String Leetcode Python
Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possible representation of s1 = "great": great / gr ...
分类:编程语言   时间:2015-04-17 11:38:26    阅读次数:129
java解惑之属性隐藏
import java.util.*; public class SixtySixth {         public static void main(String[] args){                 System.out.println(new Child().name);                 System.out.println(new Child().c...
分类:编程语言   时间:2015-04-17 11:32:12    阅读次数:147
关于leetcode中整形溢出的几道题。
题一:String to Integer (atoi)   主要是要注意这里的输入输出的特列: 题目的要求是:1 1. 前面的空格可以忽略; 2. 第一个非空格要么是整数,要么是'+','-';如过不是这些就返回0; 3. 要考虑整型溢出的情况。 大致就是这么三点 /*------------------------------------atoi ------------...
分类:其他好文   时间:2015-04-17 11:30:30    阅读次数:101
leetcode || 97、Interleaving String
problem: Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. For example, Given: s1 = "aabcc", s2 = "dbbca", When s3 = "aadbbcbcac", return true. When s3...
分类:其他好文   时间:2015-04-17 11:28:39    阅读次数:193
C# 事件
本篇文章我们来讨论C#中的事件。委托是事件的基础,了解委托请点击C#委托 。 我们先来看下面这个类public class Person { public string Name { get; set; } public int Age { get; set; } public void ZhuangBi() { string topic="I am...
分类:Windows程序   时间:2015-04-17 11:28:33    阅读次数:152
java解惑之final
import java.util.*; class J{ public static final int count = 011; } public class SeventyFirst extends J{ public static final int count = 022; public static void main(String[] a...
分类:编程语言   时间:2015-04-17 11:21:18    阅读次数:126
java中获取图片文件大小
/** * 判断图片大小 * @return */ public static boolean judegImgMaxMin(String path){ boolean flog = true; File file = new File(path); DecimalFormat df = new DecimalFormat("#.00...
分类:编程语言   时间:2015-04-17 11:18:52    阅读次数:308
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!