摘要:
public static void main(String[] args){ int c=add(5, 6); System.out.println(c); add(new Integer(6),new Integer(7)); } public static int add(int a,int 阅读全文
摘要:
public class Demo { @Test public void test01() throws UnsupportedEncodingException{ Random r=new Random(); for(int i=0 ;i<100;i++){ StringBuffer name= 阅读全文
摘要:
public class OutputStreamTest{ public static void main(String[] args){ streamCopy(); streamArrayCopy(); } public static void streamCopy(){ InputStream 阅读全文
摘要:
public class Test { public static void main(String[] args) throws IOException { //转换流以单个英文或单个中文为一个字符读取可直接转换为char类型输出 InputStreamReader input=new Input 阅读全文
摘要:
public class MySqlTest{ public static void main(String[] args) throws Exception{ Class.forName("com.mysql.jdbc.Driver"); Connection conn=DriverManager 阅读全文