![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Core Java
tt434341228
这个作者很懒,什么都没留下…
展开
-
Java数组
0. 声明一个数组(Declare an array) 1 2 3 String[] aArray = new String[5]; String[] bArray = {"a","b","c", "d", "e"}; String[] cArray = new String[]{"a","b","c","d","e"};转载 2014-02-24 20:42:31 · 126 阅读 · 0 评论 -
XML解析
dom4j 已经成为历史了,现在java操作xml应该使用jdom,它的便捷性要强得多,下面是jdom一些常用方法简介: 一、准备 import org.jdom.Document; import org.jdom.Element; import org.jdom.input.SAXBuilder; ① String path = xml文档路径; ② SAXBuilder b转载 2014-02-24 20:34:48 · 190 阅读 · 0 评论 -
@SuppressWarnings("unchecked") 注解作用
JDK1.5中新加入的Annotation语法,用来压制警告信息的。 编写代码时,有时会提示一些警告(例如:使用已经废弃的类,没有加入泛型等),如果不想让程序提示这些警告信息,可以在提示警告的方法啊前加入这个配置,以压制应高信息。原创 2014-02-25 17:52:19 · 214 阅读 · 0 评论 -
Java中的Enum的使用与分析
示例: public enum EnumTest { FRANK("The given name of me"), LIU("The family name of me"); private String context; private String getContext(){ return this.context; }转载 2014-03-12 11:33:54 · 137 阅读 · 0 评论 -
java获取取得Timestamp类型的当前系统时间
方法一: Timestamp d = new Timestamp(System.currentTimeMillis()); 方法二: Date date = new Date(); Timestamp nousedate = new Timestamp(date.getTime());转载 2014-03-19 16:15:21 · 248 阅读 · 0 评论 -
java 序列化保存到磁盘的相关问题
package com.taskManager.connectionStation; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectInpu转载 2014-03-19 16:11:54 · 545 阅读 · 0 评论