资源简介

mysql数据库 图书管理系统是课程实习作业 已高分通过验收 但是没有分层 比较简单 足球联赛可支持偶数只球队进行循环比赛 每个队伍有五名队员 每个队员有四个属性值 决定了这个队员的进攻和防守 同时附带有给新建队员随机命名的程序

资源截图

代码片段和文件信息

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Random;

public class addplayer
{
public static void addplayers(int number)
{
final String JDriver = “com.mysql.jdbc.Driver“; 
final String conURL = “jdbc:mysql://localhost:3307/football“;

try {
        Class.forName(JDriver);
        }
    catch(ClassNotFoundException cnf_e)
    { 
        System.out.println(“Driver Not Found: “ + cnf_e);
    }
    try {
     ChineseName chinesename=new ChineseName();
     Random random = new Random();
     Connection con2 = DriverManager.getConnection(conURL “root“ ““);
Statement s2 = con2.createStatement(); 
     for(int i=0;i     {
     String name=chinesename.GetName();
 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-09-18 21:22  libruary\
     文件         421  2011-09-04 12:13  libruary\.classpath
     目录           0  2011-09-18 21:22  libruary\.myeclipse\
     目录           0  2011-09-18 21:22  libruary\.myeclipse\profiler\
     文件         791  2011-09-18 21:22  libruary\.myeclipse\profiler\b.xml
     文件         384  2011-09-04 12:12  libruary\.project
     目录           0  2011-09-04 21:17  libruary\.settings\
     文件         629  2011-09-04 12:13  libruary\.settings\org.eclipse.jdt.core.prefs
     目录           0  2011-10-31 08:24  libruary\bin\
     文件        2741  2011-10-31 08:24  libruary\bin\addplayer.class
     文件         761  2011-10-31 08:24  libruary\bin\admin$1.class
     文件        3807  2011-10-31 08:24  libruary\bin\admin$10.class
     文件        2602  2011-10-31 08:24  libruary\bin\admin$11.class
     文件        2604  2011-10-31 08:24  libruary\bin\admin$12.class
     文件        2606  2011-10-31 08:24  libruary\bin\admin$13.class
     文件        2605  2011-10-31 08:24  libruary\bin\admin$14.class
     文件        2030  2011-10-31 08:24  libruary\bin\admin$15.class
     文件        1152  2011-10-31 08:24  libruary\bin\admin$16.class
     文件        4608  2011-10-31 08:24  libruary\bin\admin$17.class
     文件        4007  2011-10-31 08:24  libruary\bin\admin$18.class
     文件        4182  2011-10-31 08:24  libruary\bin\admin$19.class
     文件         647  2011-10-31 08:24  libruary\bin\admin$2.class
     文件         865  2011-10-31 08:24  libruary\bin\admin$3.class
     文件         865  2011-10-31 08:24  libruary\bin\admin$4.class
     文件         865  2011-10-31 08:24  libruary\bin\admin$5.class
     文件        2032  2011-10-31 08:24  libruary\bin\admin$6.class
     文件        1157  2011-10-31 08:24  libruary\bin\admin$7.class
     文件        4121  2011-10-31 08:24  libruary\bin\admin$8.class
     文件        3557  2011-10-31 08:24  libruary\bin\admin$9.class
     文件       11983  2011-10-31 08:24  libruary\bin\admin.class
     文件        6452  2011-10-31 08:24  libruary\bin\ChineseName.class
............此处省略52个文件信息

评论

共有 条评论