From 5316c506119ad056a5640650e5e79babe4194d38 Mon Sep 17 00:00:00 2001
From: admin <15939171744@163.com>
Date: 星期四, 25 四月 2024 20:33:31 +0800
Subject: [PATCH] -

---
 jcdm-main/src/main/java/com/jcdm/main/restful/factoryMes/controller/testClass.java |   37 +++++++++++++++++--------------------
 1 files changed, 17 insertions(+), 20 deletions(-)

diff --git a/jcdm-main/src/main/java/com/jcdm/main/restful/factoryMes/controller/testClass.java b/jcdm-main/src/main/java/com/jcdm/main/restful/factoryMes/controller/testClass.java
index 832cd97..4e849eb 100644
--- a/jcdm-main/src/main/java/com/jcdm/main/restful/factoryMes/controller/testClass.java
+++ b/jcdm-main/src/main/java/com/jcdm/main/restful/factoryMes/controller/testClass.java
@@ -1,30 +1,27 @@
 package com.jcdm.main.restful.factoryMes.controller;
 
-import java.util.Date;
-import java.util.Timer;
-import java.util.TimerTask;
+import java.util.*;
 
 public class testClass {
     public static void main(String[] args) {
-        // 鍒涘缓Timer瀹炰緥
-        Timer timer = new Timer();
-
-        // 鍒涘缓TimerTask瀹炰緥
-        TimerTask task = new TimerTask() {
-            @Override
-            public void run() {
-                // 鍦ㄨ繖閲岀紪鍐欏畾鏃朵换鍔$殑鍏蜂綋閫昏緫
-                System.out.println("瀹氭椂浠诲姟瑙﹀彂锛屽綋鍓嶆椂闂达細" + new Date());
+        String str = "123990016680564";
+        List<String> l = new ArrayList<>();
+        l.add("9900166805");
+        l.add("9900171753");
+        l.add("9900173353");
+        Integer i = 0;
+        String o = "";
+        for (String s : l) {
+            if(str.contains(s)){
+                i = s.length();
+                o = s;
+                break;
             }
-        };
+        }
+        System.out.println(i);
+        System.out.println(o);
 
-        // 璁剧疆瀹氭椂浠诲姟鐨勮Е鍙戞椂闂翠负姣忓ぉ鐨�9:25
-        // 鑾峰彇褰撳墠鏃堕棿
-        Date currentTime = new Date();
-        // 璁剧疆瀹氭椂浠诲姟鐨勮Е鍙戞椂闂翠负褰撳ぉ鐨�9:25
-        Date scheduleTime = new Date(currentTime.getYear(), currentTime.getMonth(), currentTime.getDate(), 9, 27, 0);
 
-        // 鍚姩瀹氭椂浠诲姟
-        timer.schedule(task, scheduleTime);
+
     }
 }

--
Gitblit v1.9.3