Java基础
iteye_11188
这个作者很懒,什么都没留下…
展开
-
文件的读写操作
public class ReadAndWrite { public static void main(String[] args) { try { //文件读入 InputStream in=new FileInputStream(new File("./88.txt")); BufferedReader br=new ...2009-01-07 14:23:40 · 98 阅读 · 0 评论 -
字符串分割
public class Split{ public static void main(String[] args) { String s="zhou;wen;dong" String[] edges = treeSpec.split(";"); for (String edge: java.util.Arrays.asList(edges)) { ...2009-01-08 09:22:00 · 85 阅读 · 0 评论 -
Java Binary Trees and Solutions
[size=small]In Java, the key points in the recursion are exactly the same as in C or C++. In fact, I created the Java solutions by just copying the C solutions, and then making the syntactic changes. ...原创 2009-03-19 10:01:18 · 116 阅读 · 0 评论 -
C3P0使用前后的比较
从网上看到的一个关于数据库连接在使用了C3P0前后的比较。本人暂时还没有测试过。 下面是一个C3P0的工具类。import java.beans.PropertyVetoException;import java.sql.Connection;import java.sql.SQLException;import com.mchange.v2.c3p0.ComboPo...原创 2009-12-10 08:43:00 · 99 阅读 · 0 评论 -
Eclipse中插件的安装的基本方式
1 在Eclipse的安装目录下新建文件夹,名字随意,不过要让自己知道这个文件夹下存放的是什么东西,我在这里主要是安装svn,因此文件夹名字为svnplugin。然后在此文件夹新建名字为“eclipse”的文件夹(注意:名字必须为“eclipse”)。然后将插件的相关文件放到此文件夹下,一般为两个文件夹“features”和“plugins”,里面一般为相关的jar包。2 再新建一个文件夹“l...2009-05-11 16:25:56 · 68 阅读 · 0 评论 -
Schema文件初探(几个重要的元素和属性)
一、Schema文件的部分元素及属性说明:1、targetNamespace可以使用targetNamespace 属性将默认命名空间中的元素和属性放入不同的命名空间。还可以指定在显示局部声明的架构元素和属性时,是否应由命名空间限定(使用前缀显式限定或默认隐式限定)。2、elementFormDefault(同样的还有attributeFormDefault)MSDN中ele...2010-11-28 14:17:38 · 299 阅读 · 0 评论