码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
找出两个字符串中最长的相同子字符串
//找出两个字符串中最长的相同子字符串public class Stringdemo { public static void main(String[] args) { String str1 = new String("eeabcde"); String...
分类:其他好文   时间:2015-02-02 07:05:20    阅读次数:229
C/C++内存存储
#include #include "string.h"#include "malloc.h"void Swap(int a,int b){ int temp; temp=a; a=b; b=temp;}int Get_Int(int a){ int i=1+a; ...
分类:编程语言   时间:2015-02-02 07:04:47    阅读次数:243
修改XtraMessageBox的内容字体大小
修改XtraMessageBox的内容字体大小 public static DialogResult Show(UserLookAndFeel lookAndFeel, IWin32Window owner, string text, string caption, DialogResult[] b...
分类:其他好文   时间:2015-02-02 07:04:05    阅读次数:1213
[javascript]String添加trim和reverse方法
function trim() { var start, end; start = 0; end = this.length - 1; while(start = 0; end --) { str = str + this.charAt(end); } ...
分类:编程语言   时间:2015-02-02 01:53:35    阅读次数:195
异常信息重定向及相关处理办法
public static String outputThrowable(Throwable t) throws FileNotFoundException{ for (StackTraceElement ste:t.getStackTrace()) { ...
分类:其他好文   时间:2015-02-02 00:36:38    阅读次数:163
.net 更改时间格式
/// /// 更改时间格式[HH:mm:ss]到[HHmmss] /// /// /// public static string TimeToJsonTime(string input) { ...
分类:Web程序   时间:2015-02-02 00:33:01    阅读次数:268
xml中定义个TextView控件及java代码中调用方法。
<TextView ????????android:layout_width="wrap_content" ????????android:layout_height="wrap_content" ????????android:text="@string/hello_world" ????????android:id="@+i...
分类:编程语言   时间:2015-02-01 23:24:46    阅读次数:367
遍历map的四方方法
1 public static void main(String[] args) { 2 3 Map map = new HashMap(); 4 map.put("1", "value1"); 5 map.put("2", "value2"); 6 map.put("3", "...
分类:其他好文   时间:2015-02-01 23:18:41    阅读次数:233
C#.NET实现Word或Excel文件转为HTML文件
Word文件转html,返回相对路径 1 private string GetPathByDocToHTML(string strFile) 2 { 3 if (string.IsNullOrEmpty(strFile)) 4 { 5 ...
分类:Windows程序   时间:2015-02-01 23:16:02    阅读次数:387
.net 更改日期格式
示例:更改日期格式下面的代码示例使用Regex.Replace方法将mm/dd/yy格式的日期替换为dd-mm-yy格式的日期。static string MDYToDMY(string input) { return Regex.Replace(input, "\\b(?...
分类:Web程序   时间:2015-02-01 23:14:55    阅读次数:175
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!