随笔分类 -  java

摘要:1 package keyword; 2 3 import java.io.UnsupportedEncodingException; 4 import java.sql.Connection; 5 import java.sql.DriverManager; 6 import java.sql.PreparedStatement; 7 import java.sql.Resul... 阅读全文
posted @ 2017-11-01 16:10 xiongjiawei 阅读(3611) 评论(0) 推荐(0)
摘要:反射调方法时无论是静态/非静态,固定/可变参数,都有Object对象数组对参数进行包装。 阅读全文
posted @ 2017-05-15 23:08 xiongjiawei 阅读(7882) 评论(0) 推荐(1)
摘要:1 package 网络编程; 2 3 import java.io.BufferedReader; 4 import java.io.BufferedWriter; 5 import java.io.FileOutputStream; 6 import java.io.IOException; 7 阅读全文
posted @ 2017-04-15 15:42 xiongjiawei 阅读(382) 评论(0) 推荐(0)
摘要:1 package com.tn.mysqlconnection; 2 3 import java.sql.Connection; 4 import java.sql.DriverManager; 5 import java.sql.PreparedStatement; 6 import java. 阅读全文
posted @ 2017-04-15 13:39 xiongjiawei 阅读(280) 评论(0) 推荐(0)
摘要:1 package 网络编程; 2 3 import java.io.IOException; 4 import java.io.PrintStream; 5 import java.net.ServerSocket; 6 import java.net.Socket; 7 8 public cla 阅读全文
posted @ 2017-04-09 20:15 xiongjiawei 阅读(272) 评论(0) 推荐(0)
摘要:1 package 对象序列化; 2 3 import java.io.Serializable; 4 5 @SuppressWarnings("serial") 6 class A implements Serializable{ 7 8 } 9 public class TestSerializ 阅读全文
posted @ 2017-04-09 19:10 xiongjiawei 阅读(421) 评论(0) 推荐(0)
摘要:多用Scanner少用InputStream 多用BufferedReader少用Reader 多用PrintStream少用OutputStream 多用PrintWriter少用Writer 1 package Scanner; 2 3 import java.io.File; 4 import 阅读全文
posted @ 2017-04-09 18:57 xiongjiawei 阅读(559) 评论(0) 推荐(0)
摘要:BufferedReader最重要,因为有个方法public String readLine() 1 package System输入输出; 2 3 import java.io.BufferedReader; 4 import java.io.IOException; 5 import java. 阅读全文
posted @ 2017-04-09 17:40 xiongjiawei 阅读(252) 评论(0) 推荐(0)
摘要:1 package System输入输出; 2 3 import java.io.ByteArrayOutputStream; 4 import java.io.File; 5 import java.io.FileOutputStream; 6 import java.io.IOException 阅读全文
posted @ 2017-04-09 17:04 xiongjiawei 阅读(466) 评论(0) 推荐(0)
摘要:1 package 打印流; 2 3 import java.io.File; 4 import java.io.FileOutputStream; 5 import java.io.IOException; 6 import java.io.OutputStream; 7 8 class MyPr 阅读全文
posted @ 2017-04-09 15:39 xiongjiawei 阅读(322) 评论(0) 推荐(0)
摘要:1 package 内存流; 2 3 import java.io.ByteArrayInputStream; 4 import java.io.ByteArrayOutputStream; 5 import java.io.IOException; 6 import java.io.InputSt 阅读全文
posted @ 2017-04-09 14:15 xiongjiawei 阅读(1075) 评论(0) 推荐(0)
摘要:1 package 字符编码; 2 3 import java.io.File; 4 import java.io.FileOutputStream; 5 import java.io.IOException; 6 import java.io.OutputStream; 7 import java 阅读全文
posted @ 2017-04-09 13:38 xiongjiawei 阅读(2281) 评论(0) 推荐(0)
摘要:1 package 文件操作; 2 3 import java.io.File; 4 import java.io.FileInputStream; 5 import java.io.FileOutputStream; 6 import java.io.IOException; 7 import j 阅读全文
posted @ 2017-04-09 12:13 xiongjiawei 阅读(182) 评论(0) 推荐(0)
摘要:1 package 文件操作; 2 3 import java.io.File; 4 import java.io.FileOutputStream; 5 import java.io.IOException; 6 import java.io.OutputStream; 7 import java 阅读全文
posted @ 2017-04-09 10:51 xiongjiawei 阅读(225) 评论(0) 推荐(0)
摘要:1 package 文件操作; 2 3 import java.io.File; 4 import java.io.FileReader; 5 import java.io.IOException; 6 import java.io.Reader; 7 8 public class TestRead 阅读全文
posted @ 2017-04-08 23:58 xiongjiawei 阅读(1240) 评论(0) 推荐(0)
摘要:1 package 文件操作; 2 3 import java.io.File; 4 import java.io.FileWriter; 5 import java.io.IOException; 6 import java.io.Writer; 7 8 public class TestWrit 阅读全文
posted @ 2017-04-08 23:36 xiongjiawei 阅读(963) 评论(0) 推荐(0)
摘要:1 package 文件操作; 2 3 import java.io.File; 4 import java.io.FileInputStream; 5 import java.io.IOException; 6 import java.io.InputStream; 7 8 public clas 阅读全文
posted @ 2017-04-08 23:17 xiongjiawei 阅读(545) 评论(0) 推荐(0)
摘要:1 package 文件操作; 2 3 import java.io.File; 4 import java.io.FileOutputStream; 5 import java.io.IOException; 6 import java.io.OutputStream; 7 8 public cl 阅读全文
posted @ 2017-04-08 22:05 xiongjiawei 阅读(257) 评论(0) 推荐(0)
摘要:1 package 文件操作; 2 3 import java.io.File; 4 import java.io.IOException; 5 6 public class TestFile { 7 public static void main(String[] args) throws IOE 阅读全文
posted @ 2017-04-08 19:36 xiongjiawei 阅读(255) 评论(0) 推荐(0)
摘要:1 package 国际化; 2 3 import java.util.ResourceBundle; 4 5 public class TestResource { 6 public static void main(String[] args) { 7 ResourceBundle rb=Res 阅读全文
posted @ 2017-04-08 17:46 xiongjiawei 阅读(528) 评论(0) 推荐(0)