码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
JAVA 基础 字符串
字符串操作是计算机程序设计中最常见的行为,所以深入掌握它是很有必要的。 本文讲解了字符串相关的三个类:String、StringBuilder、StringBuffer。 因为这三个类的方法大部分相同,所以本文先详细介绍 String 类,然后再介绍它与另两个类的差异。
分类:编程语言   时间:2015-02-02 15:29:36    阅读次数:173
C# XmlTextWriter和XmlTextReader 读写XML文件
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Xml;namespace Xml{class Program{static void Main(string...
分类:Windows程序   时间:2015-02-02 15:28:55    阅读次数:171
用竖线分割的字符串的解析方式
public static void main( String[] args ) throws IOException { String str = "a|b"; String[] strs = str.split("[|]"); System.out...
分类:其他好文   时间:2015-02-02 15:27:54    阅读次数:129
Java format 简单应用
一、前言 String.format作为文本处理工具,为我们提供强大而丰富的字符串格式化功能,为了不止步于简单调用String.format("Hello %s","John");,下面将笔记整理并记录下来。二、重载方法 ...
分类:编程语言   时间:2015-02-02 15:24:32    阅读次数:234
串操作算法虚拟实现
//串:它是有限字符集中的零个或多个字符组成的有限序列 //一种特殊的线性表 int indexz(String S,String T,int pos) { //T为非空串,若主串S中第pos个字符之后存在与T相等 //的子串,则返回第一个这样的子串在S中的位置 if(pos>0) { n=StrLength(S);//求出主字符串的长度 m=StrLength(T);//求出非...
分类:编程语言   时间:2015-02-02 14:16:53    阅读次数:199
寒假集训.ID Codes
ID Codes Time Limit:3000MS     Memory Limit:0KB     64bit IO Format:%lld & %llu Submit Status Description  ID Codes  It is 2084 and the year of Big Brother has...
分类:其他好文   时间:2015-02-02 14:11:50    阅读次数:128
Leetcode Longest Valid Parentheses
Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the longest...
分类:其他好文   时间:2015-02-02 14:03:33    阅读次数:101
java如何运行OS命令(转)
javac TestRunTime.javajava TestRunTime hostname // 执行“hostname”Linux命令即可看到输出public class TestRunTime { public static void main(String[] args) throw...
分类:编程语言   时间:2015-02-02 13:54:50    阅读次数:168
封装的适配器 adapter
//封装的适配器类adapter publicclassNewJobAdapterextendsBaseAdapter{ privateList<Map<String,Object>>data=null; privateLayoutInflatermInflater=null; privateContextmContext; publicNewJobAdapter(){ } publicNewJobAdapter(Contextcontext,List<Map<..
分类:其他好文   时间:2015-02-02 12:46:39    阅读次数:140
用户权限设计(二)
上一篇文章:用户权限设计(一) 下面介绍一下权限的更新和验证 @RequestMapping("authDemoSubmit") public String authDemoSubmit(@ModelAttribute("vm") UserAuth mUserAuth) { Map> authMap = mUserAuth.getUserAuthMap(); Itera...
分类:其他好文   时间:2015-02-02 12:38:27    阅读次数:120
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!