- 博客(7)
- 收藏
- 关注
原创 java第7次作业
public static void main(String[] args) { File file = new File("D:\\"); cha(file); } private static void cha(File src) { File[] files = src.listFiles(); if (files != null) { for (File file : files) { if (file.isDirector...
2021-12-06 20:56:47 162
原创 java第6次作业
public class test extends Thread{ public static void main(String[] args) throws IOException { int port = 10000; String name; MulticastSocket ms = new MulticastSocket(port); Scanner sc = new Scanner(System.in); I...
2021-12-04 22:14:23 99
原创 java第5次作业
public class yonhu1 { public static void main(String[] args){ yonhu1 yh1 = new yonhu1(); new Thread(() -> { yh1.receive(); }).start(); new Thread(() -> { yh1.send(); }).start(); ...
2021-12-04 21:54:53 71
原创 java第4次作业
public static void main(String[] args) throws SQLException { getconn(); String selectsql="select * from info"; (所有查询代码为: select * from info where tel like '?%'; select * from info where sex=?; select * from info where tel like '?%'; select * from ...
2021-12-04 21:24:14 92
原创 java第3次作业
public enum meiju { WS1,WS2,special,expert,common,nb } public class meiju2 { public static void doit(meiju a) { switch(a) { case WS1: System.out.println("车间号为WS1的员工工号有:W1,W2,W3,W4,W5,W6,W7"); break; c...
2021-12-04 20:55:03 287
原创 java第二次作业
public interface baba { public void somking(); public void fishing(); } public interface mama { public void watchTv(); public void cooking(); } public class babaandmama implements baba,mama{ @Override public void watchTv() { ...
2021-12-04 20:39:15 301
原创 Java作业1
第一题 int a,b; for( a=2;a<101;a++) { for(b=2;b<=a/2;b++) { if(a%b==0) break; } if (b>a/2) { System.out.print(a); } System.out.println(); } 第二题 int a,b; for( a=2;a<101...
2021-09-10 11:35:26 65
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人