2012年11月19日

UDP数据发送

摘要: import java.net.*;class netDemo{ public static void main(String[] args)throws Exception { System.out.println("发送数据。。。。。"); DatagramSocket ds=new DatagramSocket(); String str="哥来了"; byte[] buf=str.getBytes(); DatagramPacket dp=new DatagramPacket(buf,buf.length... 阅读全文

posted @ 2012-11-19 23:26 蝌蚪的精神 阅读(171) 评论(0) 推荐(0) 编辑

日期Calendar

摘要: import java.util.*;import java.text.*;class DateDemo{ public static void main(String[] arhgs) { String[] month={"一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"}; Stri 阅读全文

posted @ 2012-11-19 10:44 蝌蚪的精神 阅读(172) 评论(0) 推荐(0) 编辑

导航