摘要: ![](http://images2017.cnblogs.com/blog/725061/201712/725061-20171213174020097-963118806.png) ``` import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; import jav... 阅读全文
posted @ 2017-12-13 17:42 松源兄 阅读(267) 评论(0) 推荐(0) 编辑
摘要: ![](http://images2017.cnblogs.com/blog/725061/201712/725061-20171206175911847-1126073689.png) ``` public class test { public static void main(String[] args) { Tunnel tul = new Tunnel(); ... 阅读全文
posted @ 2017-12-06 18:00 松源兄 阅读(163) 评论(0) 推荐(0) 编辑
摘要: package tset; import java.util.HashSet; import java.util.Iterator; public class test { public static void main(String args[]) { HashSet liSet=new Hash 阅读全文
posted @ 2017-11-29 18:03 松源兄 阅读(135) 评论(0) 推荐(0) 编辑
摘要: ![](http://images2017.cnblogs.com/blog/725061/201711/725061-20171122174036305-558146725.png) ``` import java.util.ArrayList; import java.util.ListIterator; public class test { public static void main... 阅读全文
posted @ 2017-11-22 17:41 松源兄 阅读(123) 评论(0) 推荐(0) 编辑
摘要: ``` import java.awt.BorderLayout; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.Box; import javax.swing.ButtonGroup; import ja... 阅读全文
posted @ 2017-11-22 15:35 松源兄 阅读(212) 评论(0) 推荐(0) 编辑
摘要: ``` import java.awt.Frame; import javax.swing.JFrame; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; public class test { public static void main(String args[])... 阅读全文
posted @ 2017-11-15 16:47 松源兄 阅读(157) 评论(0) 推荐(0) 编辑
摘要: import java.util.Scanner; public class test { public static void main(String args[]) { int a,b,c; Scanner s=new Scanner(System.in); a=s.nextInt(); b=s 阅读全文
posted @ 2017-11-01 18:06 松源兄 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 课堂练习1:教材160页4.编程题 阅读全文
posted @ 2017-10-25 17:44 松源兄 阅读(161) 评论(0) 推荐(0) 编辑
摘要: ``` #ifndef LINKLIST_H_INCLUDED #define LINKLIST_H_INCLUDED #include "ds.h" #ifndef ElemType #define ElemType int #define ELEMTYPE_TAG #endif typedef struct LNode { ElemType data; struct ... 阅读全文
posted @ 2017-09-22 22:33 松源兄 阅读(143) 评论(0) 推荐(0) 编辑
摘要: class Point{ private double x; private double y; public double getDis(Point point){ return Math.sqrt(Math.sqrt((point.x this.x) (point.x this.x)+(poin 阅读全文
posted @ 2017-09-22 22:06 松源兄 阅读(191) 评论(0) 推荐(0) 编辑