码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
Leetcode#165 Compare Version Numbers
原题地址按"."分割,然后比较需要注意的地方:1. 多于的前缀0。例如"001"="1"2. 多余的后缀版本号。例如"1"="1.0.0.0"代码: 1 int compareVersion(string version1, string version2) { 2 int last1 = -1.....
分类:其他好文   时间:2015-01-26 22:32:05    阅读次数:205
根据ClassLoader获取资源文件
private void display() { String path=this.getClass().getResource("").getPath(); System.out.println(path); path=this.getClass(...
分类:其他好文   时间:2015-01-26 22:23:34    阅读次数:208
安卓EmojiTextView 和EmojiEditText
https://github.com/rockerhieu/emojicon用法和TextView一样。发送的时候用UTF-8 String enCodedStatusCode = ""; try { enCodedStatus...
分类:移动开发   时间:2015-01-26 22:21:55    阅读次数:229
Effective Java - 将可变性最小化
不可变类,即实例不能被修改的类,实例中包含的所有信息在对象的生命周期内固定不变。常见的比如String、基本类型的封装类、BigDecimal、BigInteger。 相对与可变类,不可变更易于设计、实现、使用,且更稳定(less prone to error)更安全。比如,不可变类本质上就是线程....
分类:编程语言   时间:2015-01-26 22:19:33    阅读次数:195
CDZSC_2015寒假新人(4)——搜索 - P
DescriptionParentheses BalanceYou are given a string consisting of parentheses()and[]. A string of this type is said to becorrect:(a)if it is the empt...
分类:其他好文   时间:2015-01-26 22:18:59    阅读次数:145
Valid Palindrome
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Pana...
分类:其他好文   时间:2015-01-26 20:56:06    阅读次数:132
用beanutils操纵javabean(不含自定义字符类型转换功能)
1 package beanutils; 2 3 import javax.xml.crypto.Data; 4 5 public class person { //javabean 6 private String name;//字段 7 private int age;...
分类:编程语言   时间:2015-01-26 20:40:00    阅读次数:219
c# 01/26/2015
右侧栏project下properties点中再把output改成classlibrary会在..\bin\Debug下生成.dll文件设置setupstartupproject设置成启动工程C:\Windows\Microsoft.NET\Framework\v4.0.30319下的csc.exe就是c#的编译器usingSystem; publicclassHelloworld { publicstaticvoidMain(string..
分类:Windows程序   时间:2015-01-26 19:32:00    阅读次数:217
LeetCode8——String to Integer (atoi)
Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input ca...
分类:其他好文   时间:2015-01-26 19:20:02    阅读次数:136
【c++程序】图书馆购书系统(尚存问题)
//无法正常运行 #include #include using namespace std; class book { public: int num; float price; book *next; }; book *head=NULL; bool check(string str)//检查是否是数字 { for(int i=0;i<str.length();i++) { if...
分类:编程语言   时间:2015-01-26 19:19:26    阅读次数:133
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!