码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
java期末考试 11
/**11*編寫一個求平均值的接口與實現該接口的類**/publicclassTest{ publicstaticvoidmain(String[]args){ } } interfaceAverage{ doubleDoubleNumber(doublea,doubleb); } classAverageDoubleimplementsAverage{ privatedoublea,b; publicdoubleDoubleNumber(double..
分类:编程语言   时间:2015-03-13 01:53:38    阅读次数:185
asp.net在网站根目录下创建文件夹
假设要在asp.net网站的根目录下建立文件夹hovertree,C#代码如下:string m_keleyiFolderName = Server.MapPath("/hovertree");if (Directory.Exists(m_keleyiFolderName)){//文件夹已经存在re...
分类:Web程序   时间:2015-03-13 01:43:36    阅读次数:165
String的两个API,判断指定字符串是否包含另一字符串,在字符串中删除指定字符串。
// 在字符串中删除指定字符串。 String phoneNum="1795112345"; phoneNum = phoneNum.replace("17951", ""); System.out.println(phoneNum);...
分类:Windows程序   时间:2015-03-13 01:38:57    阅读次数:117
php 的简单存在 (魔术方法作用之一:容错)
name =$name; $this->age =$age; } //获取魔术方法 # @param string $name p...
分类:Web程序   时间:2015-03-13 00:27:46    阅读次数:219
LeetCode-115 Distinct Subsequences
Given a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a string is a new string which is formed from the orig...
分类:其他好文   时间:2015-03-13 00:20:24    阅读次数:178
MongoDB操作:insert()
@OverridepublicbooleaninSert(StringdbName,StringcollectionName,String[]keys,Object[]values){ DBdb=null; DBCollectiondbCollection=null; WriteResultres....
分类:数据库   时间:2015-03-13 00:19:31    阅读次数:1945
按键——Button事件监听器
button_1.setOnClickListener(newView.OnClickListener() { @Override publicvoidonClick(View v) { String button_1_content=button_1.getText().toStri...
分类:其他好文   时间:2015-03-12 23:57:37    阅读次数:156
JSON参数解析工具类
/// /// 解析JSON参数 /// public class JSONParser { JObject jObj = null; public JSONParser(string param) { tr...
分类:Web程序   时间:2015-03-12 23:55:40    阅读次数:168
字符串:StringBuilder()
String 字符串常量StringBuffer 字符串变量(线程安全)StringBuilder 字符串变量(非线程安全)【1】String和StringBuffer String 类型和 StringBuffer 类型的主要性能区别其实在于String 是不可变的对象, 因此在每次对 Stri....
分类:其他好文   时间:2015-03-12 23:50:50    阅读次数:157
删除操作——str.subString(0,str.length()-1)
subString是String的一个方法,格式为:public String substring(int beginIndex, int endIndex)返回一个新字符串,它是此字符串的一个子字符串。该子字符串从指定的 beginIndex 处开始,一直到索引 endIndex - 1 处的字符...
分类:其他好文   时间:2015-03-12 23:50:18    阅读次数:6456
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!