码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果
try{ return } - catch{}-finally{} 执行情况,内部解析
1、 try{ return } - catch{}-finally{} 等价于 try{} - catch{ return }-finally{} 这种情况public class Test{ public static void main(String args[]){ int a = getObj() ; System.out.print(a....
分类:其他好文   时间:2015-04-08 09:17:20    阅读次数:99
android 文件断点下载库使用
类库地址:https://github.com/sungerk/android-downloader 1.首先加入连接网络权限  2.文件读写操作权限  3.使用方法如下: String urlString = "url"; String localPath = Environment.getExternalStorageDirectory() ...
分类:移动开发   时间:2015-04-08 09:16:30    阅读次数:200
杭电 HDU ACM 1708 Fibonacci String
Fibonacci String Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 4102    Accepted Submission(s): 1396 Problem Description After lit...
分类:其他好文   时间:2015-04-08 09:12:44    阅读次数:118
leetcode:Path Sum II
又一道DFS题,题意如下: Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. For example: Given the below binary tree and sum = 22, 5 ...
分类:其他好文   时间:2015-04-08 09:12:40    阅读次数:116
java多线程——同步的前提
同步的前提 必须要有两个或以上的线程 必须是所有的线程使用同一个锁 这样保证同步中只能有一个线程在运行 同步的优点解决了多线程的安全问题同步的缺点多个线程判断锁,较为耗费资源class ThreadDemo1 { public static void main(String[] args) { Ticket tic = new Ticket(); Threa...
分类:编程语言   时间:2015-04-08 09:12:33    阅读次数:149
leetcode:Populating Next Right Pointers in Each Node
一道DFS的题目,题意如下: Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 which represents the number 1...
分类:其他好文   时间:2015-04-08 09:12:29    阅读次数:107
c++ vector struct 使用
1.//test.h#include using namespace std;struct AA{ string a1; string a2; string a3;};class test{public: void ReadString(vector vv);};#incl...
分类:编程语言   时间:2015-04-08 09:07:57    阅读次数:139
GW知识点
1、取值: protected void Button1_Click(object sender, EventArgs e) { string str = ""; foreach (GridViewRow row in this...
分类:其他好文   时间:2015-04-08 09:03:21    阅读次数:88
正则表达式match和group的区别 具有相同模式的字符串使用组的提取案例
Match类 示例:查找出字符串中包含的url string text = "FirstUrl: http://www.sohu.com ,SecondUrl: http://www.baidu.com "; string pattern = @"\b(\S+)://(\S+)\b"; //匹配URL的模式 MatchCollection mc = Regex.Matches(te...
分类:其他好文   时间:2015-04-08 07:57:29    阅读次数:150
Java中字符串的比较
在C++中判断两个字符串str_a, str_b的值是否相等,可以使用if (str_a == str_b)。但是在Java中不能使用if (str_a == str_b)来判断字符串str_a, str_b的值是否相等。“==”判断的是字符串str_a, str_b两个String对象在内存中存储位置是否一致,而不是字符串str_a, str_b的值是否相等。如需判断字符串str_a,...
分类:编程语言   时间:2015-04-08 06:50:58    阅读次数:167
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!