if (typeof(reValue) == "undefined") {? ?? alert("undefined");? }?? typeof 返回的是字符串,有六种可能:"number"、"string"、"boolean"、"object"、"function"、"undefined"...
分类:
Web程序 时间:
2015-03-15 17:01:11
阅读次数:
118
1 文件对象public class CreateFile { public static void main(String[] args) {
//创建要操作的文件路径和名称
//其中,File.separator表示系统相关的分隔符,Linux下为:/ Windows下为:\ //path在此程序里面代表父目录,不包含子文件...
分类:
编程语言 时间:
2015-03-15 16:56:59
阅读次数:
157
Scanner类
1 从键盘读取public class ScannerTest {
public static void main(String[] args ) {
Scanner input = new Scanner(System.in);
System.out.println("请输出一个整数:");
int i = input.n...
分类:
编程语言 时间:
2015-03-15 16:52:38
阅读次数:
165
Anagrams问题:Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.思路: Anagrams:排序后的String作为....
分类:
其他好文 时间:
2015-03-15 16:48:36
阅读次数:
106
补充: 1:在C语言里 char占1个字节 而在C#,Java里char占两个字节 数据库里char 中汉占两个字节 字母数字占一个字 2:string是c#中的类,String是.net Framework的类 string是关键字,也就是说string不能作为类、结构、枚举、字段、变量、方法、属...
字符串:由字符所组成的一串文字符号被称之为字符串 在java中字符串不仅仅是字符数组,而且是String类的一个实例,可以使用String类来构建,系统提供相关的属性和方法,提供对字符串的各种操作的支持。 字符串的每个字符是使用Unicode字符来构建。 字符串的...
分类:
编程语言 时间:
2015-03-15 16:39:45
阅读次数:
135
Letter Combinations of a Phone Number问题:iven a digit string, return all possible letter combinations that the number could represent.A mapping of digi...
分类:
其他好文 时间:
2015-03-15 16:30:01
阅读次数:
148
从本篇博文开始,详细讲解JAVA IO流的基本操作,力求每一个例子都给大家一个DEMO,在最终完成的时候,我会贴出最终的源码,方便大家交流学习。
上一篇博文中转载了大神的博文和图片,非常好!
文章链接如下:Java IO流下面一个个的用实例进行讲解每个IO流的基本用法。
1 File文件public static void main(String[] args) throws IOExcept...
分类:
编程语言 时间:
2015-03-15 15:21:23
阅读次数:
176
A goroutine is a loghtweight thread of executionpackage mainimport ( "fmt")func f(form string) { for i := 0; i < 3; i++ { fmt.Println(for...
分类:
其他好文 时间:
2015-03-15 15:13:38
阅读次数:
144
@RequestMapping(value = "downFile") public void downFile(HttpServletResponse response, String name, HttpServletRequest request) { ServletContext sc...
分类:
编程语言 时间:
2015-03-15 13:47:54
阅读次数:
145