码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
[LeetCode] Letter Combinations of a Phone Number 电话号码的字母组合
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:其他好文   时间:2015-04-24 01:04:53    阅读次数:138
WAR包
1.windows命令下使用cmd命令打包jar -cvf applicationname.war package.*;2.程序中使用代码打包(这里用java)try{ string strjavahome = system.getproperty("java.home"); str...
分类:其他好文   时间:2015-04-24 00:51:22    阅读次数:188
JAVA守护线程与用户线程的区别
public class DaemonTest { public static void main(String[] args) { new WorkerThread().start(); try { Thread.sleep(7500); } catch (InterruptedException e) {} ...
分类:编程语言   时间:2015-04-23 23:34:42    阅读次数:365
android开发步步为营之54:读取assets,raw文件夹下文件
一、读取assets文件下文件products.json public String readAssetFile(Context c, String file) { Elapsed profiler = new Elapsed(); BufferedReader bufReader = null; try { InputS...
分类:移动开发   时间:2015-04-23 23:34:25    阅读次数:328
重写hashCode与equals方法的作用
为了阐明其作用,我们先来假设有如下一个Person类。 class Person { public Person(String name, int age) { this.name = name; this.age = age; } private String name; private int age; public String getName() { ret...
分类:其他好文   时间:2015-04-23 23:33:11    阅读次数:172
Java8 Lambda表达式入门
Lambda表达式的实质就是一个匿名函数。C#3.0引入了Lambda表达式,Java8也不甘示弱。Java8发布很久了,今天安装了JDK体验了Java8中的Lambda表达式。首先看一个不适用Lambda表达式的例子。 比如我们要对一组字符串进行排序。public class Hello { public static void main(String[] args) {...
分类:编程语言   时间:2015-04-23 23:32:25    阅读次数:171
数组排序(java)冒泡法
public class ArrayTest03{ /* Name:数组排序,冒泡法 Power by :Stuart Date:2015-4-23*/ public static void main(String args[]){ //定义一个integer数组...
分类:编程语言   时间:2015-04-23 23:29:03    阅读次数:224
case class inheritance
Scala 禁止case class inheritancecase class Person(name: String, age: Int)case class FootballPlayer(name: String, age: Int, number: Int) extends Person(n...
分类:其他好文   时间:2015-04-23 23:23:16    阅读次数:299
Java for LeetCode 003 Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:编程语言   时间:2015-04-23 23:22:16    阅读次数:203
10 服务器端用 mysql_real_escape_string 清洁客户端数据
由于 mysql_real_escape_string 需要 MySQL数据库连接,因此,在调用 mysql_real_escape_string 之前,必须连接上 MySQL 数据库。PHP:调用方法PHP:经过清洁的数据可以直接插入数据库。注意!mysql_real_escape_string ...
分类:数据库   时间:2015-04-23 23:15:43    阅读次数:193
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!