src/t/o/bean/randomno.java

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package t.o.bean;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Random;

public class randomno {
	public static String foodno(){     
        String a[] = new String[6]; 
        String ranno = "FOOD";
        Random random = new Random();   
        boolean checkno = true;
        
	    while(checkno){
	    	int size = 0;
	    	for(int j=0;j<a.length;j++){
	        	a[j] = random.nextInt(10)+"";
	        }
	        for(int q=0;q<a.length;q++){
	        	ranno = ranno+a[q];
	        }
	        String sql = "select * from t_o_Food where o_foodNo = '"+ranno+"'";
	        size = DBfood.getrs(sql);
	        if(size>0){
				System.out.println("一样继续");
			}
	       	if(size==0){
	       		System.out.println("不一样");
	        	break;
	        }
	    }
        return ranno;
    }  
	public static String orderno(){     
        String a[] = new String[5]; 
        String ranno = "ORDER";
        Random random = new Random();   
        boolean checkno = true;
        
	    while(checkno){
	    	int size = 0;
	    	for(int j=0;j<a.length;j++){
	        	a[j] = random.nextInt(10)+"";
	        }
	        for(int q=0;q<a.length;q++){
	        	ranno = ranno+a[q];
	        }
	        String sql = "select * from t_o_Order where o_orderNo = '"+ranno+"'";
	        size = DBorder.getrs(sql);
	        if(size>0){
				System.out.println("一样继续");
			}
	       	if(size==0){
	       		System.out.println("不一样");
	        	break;
	        }
	    }
        return ranno;
    }  
	public static String comno(){     
后面还有 26 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。