摘要: 首先要有包 然后,在项目中加载进去- 最后就是代码了 import java.sql.*;public class GetConn {public Connection getConnection() { Connection conn = null; try { Class.forName("or 阅读全文
posted @ 2016-12-05 14:22 漂洋过海的鱼 阅读(24296) 评论(0) 推荐(0) 编辑
摘要: 转自:http://blog.sina.com.cn/s/blog_9e4556250100z5kv.html 此类是所有 Abstract Window Toolkit 实际实现的抽象超类。Toolkit 的子类被用于将各种组件绑定到特定本机工具包实现。 大多数应用程序不应直接调用该类中的任何方法 阅读全文
posted @ 2016-10-12 16:07 漂洋过海的鱼 阅读(17444) 评论(0) 推荐(0) 编辑
摘要: package com.lzw; import java.awt.*;import java.awt.event.*; import javax.swing.*; public class UseCase3 extends JFrame{ /** * */ private static final 阅读全文
posted @ 2016-10-09 16:22 漂洋过海的鱼 阅读(7994) 评论(0) 推荐(0) 编辑
摘要: import java.io.*; public class Example { static final int lineLength = 81; public static void main(String[] args) { FileOutputStream fos; byte[] phone 阅读全文
posted @ 2016-10-09 16:14 漂洋过海的鱼 阅读(2479) 评论(0) 推荐(0) 编辑
摘要: import java.io.*; public class Example { public static void main(String[] args) { char a[] = "今天10点出发".toCharArray(); int n = 0; try { File out = new 阅读全文
posted @ 2016-10-09 16:01 漂洋过海的鱼 阅读(2698) 评论(0) 推荐(0) 编辑
摘要: import java.io.*; import javax.swing.*; public class Student { public static void main(String[] temp) { byte b[] = new byte[2]; try{ FileInputStream f 阅读全文
posted @ 2016-10-09 15:51 漂洋过海的鱼 阅读(3918) 评论(0) 推荐(0) 编辑