- 博客(6)
- 收藏
- 关注
原创 【无标题】
public class TCPP implements Runnable{ Socket clientSocket; boolean flag=true; Thread connenThread; //向服务器发送消息 BufferedReader cin; DataOutputStream cout; public static void main(String[] args) { new TCPP().clientStart(); .
2021-12-06 14:57:44 48
原创 【无标题】
public class UDP { public static void main String[] args) throws IOException { int port = 10000; String name; MulticastSocket ms = new MulticastSocket(port); Scanner sc = new Scanner(System.in); InetAddress address = InetAddress.g...
2021-12-06 14:31:05 46
原创 【无标题】Java作业第四
public static void main(String[] args) { File wenjian = new File("D:\\"); File[] mulu = wenjian.listFiles(); for(File File : mulu) { System.out.println(File); if(File.isDirectory()) { .
2021-11-30 11:34:20 252
原创 Java第六次作业
public class ExceTest { public static void main(String[] args) throws IOException { List<String> list = new ArrayList(); list.add("要讲话精神"); list.add("工作重要思想"); list.add("的精神丰碑"); list.add("中国"); li.
2021-11-03 18:49:54 77
原创 第三次作业
public void MySQL() throws ClassNotFoundException, SQLException { Class.forName("com.mysql.cj.jdbc.Driver"); Connection result = DriverManager.getConnection("jdbc:mysql://localhost:3306/phone_book", "root","123456"); ...
2021-10-06 13:24:34 65
原创 2021-09-09
2.public class chargenumber { public static void main(String[] args) { // TODO Auto-generated method stub int a[][] = {{1,2,3},{4,5,6},{7,8,9}}; for(int i=0;i<a.length;i++) { for(int j=0;j<a.length;j++) { ...
2021-09-09 09:15:16 74
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人