- 博客(6)
- 资源 (1)
- 收藏
- 关注
转载 java各种数据库连接
<br />MySQL: String Driver="com.mysql.jdbc.Driver"; //驱动程序 String URL="jdbc:mysql://localhost:3306/db_name"; //连接的URL,db_name为数据库名 String Username="username"; //用户名 String Password="password"; //密码 Class.forName
2011-04-05 15:30:00 329
转载 java获取ip地址
<br />import java.awt.GridLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.net.InetAddress;import java.net.UnknownHostException;import javax.swing.JButton;import javax.swing.JFrame;import javax.swing.J
2011-04-05 15:27:00 494
转载 java日期处理bean
<br />import java.text.ParsePosition;import java.text.SimpleDateFormat;import java.util.Calendar;import java.util.Date;import java.util.GregorianCalendar;import java.util.regex.Pattern;import org.apache.commons.logging.Log;import org.apache.c
2011-04-05 15:26:00 403
转载 java访问资源文件Properties
<br />import java.io.FileInputStream; import java.io.FileOutputStream; import java.util.Properties; public class PropertyEditor { public static void main(String[] args) throws Exception { Properties prop = new Properties
2011-04-05 15:25:00 754
转载 java读xml
<br />java代码:<br />import java.io.*;import javax.xml.parsers.DocumentBuilder;import javax.xml.parsers.DocumentBuilderFactory;import org.w3c.dom.Document;import org.w3c.dom.Element;import org.w3c.dom.Node;import org.w3c.dom.NodeList;public cla
2011-04-05 15:23:00 513
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人