码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
一个用于将sql脚本转换成实体类的js代码
以前写过一段C#,苦于编译才能用。这样的小工具最好是用脚本语言来编写,易于执行,也易于修改。js 代码 convert.js--------------------------------------------------String.prototype.trim=function(){ ret....
分类:数据库   时间:2014-12-27 10:04:30    阅读次数:191
UVa 10763 - Foreign Exchange
统计国家代号出现的次数,如果去的和来的相等就输出YES即可。 import java.util.*; public class Main10763 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); while(true) { int n = scan.nextIn...
分类:其他好文   时间:2014-12-27 08:59:41    阅读次数:120
Java SimpleDateFormat 函数
一、SimpleDateFormat函数例子:SimpleDateFormat format=new SimpleDateFormat("MM-dd HH:mm:ss E");String time=format.format(new Date());System.out.println("当前时间...
分类:编程语言   时间:2014-12-27 06:41:06    阅读次数:158
java变长参数
从java5开始提供了变长参数,可以把变长参数当作数据使用可变长参数方法的定义使用...表示可变长参数,例如print(String... args){ ...}在具有可变长参数的方法中可以把参数当成数组使用,例如可以循环输出所有的参数值。print(String... args){ for(S.....
分类:编程语言   时间:2014-12-27 01:31:37    阅读次数:230
leetcode 【 Reverse Words in a String 】python 实现
题目:Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".代码:oj在线测试通过Runtime:172 ms 1...
分类:编程语言   时间:2014-12-27 01:26:47    阅读次数:232
[leetcode] Wildcard Matching
题目:(DP,BackTracking, Greedy,String)Implement wildcard pattern matching with support for'?'and'*'.'?' Matches any single character.'*' Matches any sequ...
分类:其他好文   时间:2014-12-27 00:13:18    阅读次数:292
05.C#泛型类型(三章3.1-3.2)
接下来说下C#中的泛型,熟练地使用泛型能提高代码的重用性,使用我们代码瞬间就高大上了,当然只有一点点,真的只有一点点,因为后面要学习和掌握的知识还有很多。先来看下一个使用Dictionary的例子。 1 static void Main(string[] args) 2 { 3 Dicti...
分类:Windows程序   时间:2014-12-27 00:13:17    阅读次数:224
php几个函数
1. dirname(PHP 3, PHP 4, PHP 5)dirname--返回路径中的目录部分说明stringdirname( string path ) 给出一个包含有指向一个文件的全路径的字符串,本函数返回去掉文件名后的目录名。 在 Windows 中,斜线(/)和反斜线(\)都可以用作目...
分类:Web程序   时间:2014-12-27 00:11:08    阅读次数:164
【XFeng安卓开发笔记】android 如何在对话框中获取edittext中的数据
最近做的一个登录对话框,在获取数据的时候出现错误,运行的时候自动死机。出错语句:EditText PasswordEidtText = (EditText)findViewById(R.id.UserPasswordEidtText); // 发送文本 String mes...
分类:移动开发   时间:2014-12-27 00:07:21    阅读次数:254
UVa 1594 - Ducci Sequence
没看清题号,TimeLimit。啊。  直接计算次数即可。 代码 : import java.util.*; public class Main1954 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int t = scan.nextInt(); while(...
分类:其他好文   时间:2014-12-26 23:05:23    阅读次数:487
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!