文件名称:Lottery
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:5.67kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
此小程序的基本流程是,在一个文本文件存放里面备选的数据,数据的格式是每行有姓名 和 手机号
*他们之间是用分隔符-来分隔的。然后在自定义一个方法,通过分隔符来区分姓名和手机号,然后将
*他们分别存储进两个不同的可变向量当中。
* 自定义一个线程,此线程是专门用来随机选取一个号码, 并且每隔50毫秒就将一个不同的号码显示在
* 号码框中,这样就实现了号码的快速滚动,实现了完全模拟电视当中抽奖的画面
*
* 为了实现选取出的一个号码不能再被选种,实现的方法是将他们从可变向量中清除出去
*
* 本程序的数据来源选用的是文本文件,原因有,第一,这是一个小程序,加上数据库显得不适宜。第二,本着
* 学习的态度,因为,如果用数据库来实现的话,很多功能都可以通过sql语句和 数据库的功能来实现。而此程序
* 所有的功能都需程序本身来承担完成。当然,对于有大量的数据来说,还是需要数据库的。像这样把数据一次性
* 读入内存中,大于大量数据是不行的!
*
* 此程序是在*面设计的环境eclipse下设计完成的,界面难免显得僵硬....
*
* 在以后的版本中还将实现,用户可以自己设定 名额,奖项等-The basic process of this applet is a text file in which alternative data storage, data format is each line a name and phone number
* Is a separator between them- to separate the. Then customize a method, through the separator to distinguish between the name and phone number, then
* They are stored into two different vectors were variable.
* Define a thread, this thread is designed to randomly select a number, and every 50 milliseconds, a different number will be displayed in the
* No box, so to achieve a number of rapidly rolling to achieve a complete picture of analog TV which draw
*
* In order to achieve selected out of a number can not be selection, implementation method is to clear them out from the variable vector
*
* Source of data used in this process is a text file, reasons, First, this is a small program with a database seems inappropriate. Second, in line with
* Learning attitude, because if the database to achieve it, many features are available through sq
*他们之间是用分隔符-来分隔的。然后在自定义一个方法,通过分隔符来区分姓名和手机号,然后将
*他们分别存储进两个不同的可变向量当中。
* 自定义一个线程,此线程是专门用来随机选取一个号码, 并且每隔50毫秒就将一个不同的号码显示在
* 号码框中,这样就实现了号码的快速滚动,实现了完全模拟电视当中抽奖的画面
*
* 为了实现选取出的一个号码不能再被选种,实现的方法是将他们从可变向量中清除出去
*
* 本程序的数据来源选用的是文本文件,原因有,第一,这是一个小程序,加上数据库显得不适宜。第二,本着
* 学习的态度,因为,如果用数据库来实现的话,很多功能都可以通过sql语句和 数据库的功能来实现。而此程序
* 所有的功能都需程序本身来承担完成。当然,对于有大量的数据来说,还是需要数据库的。像这样把数据一次性
* 读入内存中,大于大量数据是不行的!
*
* 此程序是在*面设计的环境eclipse下设计完成的,界面难免显得僵硬....
*
* 在以后的版本中还将实现,用户可以自己设定 名额,奖项等-The basic process of this applet is a text file in which alternative data storage, data format is each line a name and phone number
* Is a separator between them- to separate the. Then customize a method, through the separator to distinguish between the name and phone number, then
* They are stored into two different vectors were variable.
* Define a thread, this thread is designed to randomly select a number, and every 50 milliseconds, a different number will be displayed in the
* No box, so to achieve a number of rapidly rolling to achieve a complete picture of analog TV which draw
*
* In order to achieve selected out of a number can not be selection, implementation method is to clear them out from the variable vector
*
* Source of data used in this process is a text file, reasons, First, this is a small program with a database seems inappropriate. Second, in line with
* Learning attitude, because if the database to achieve it, many features are available through sq
相关搜索: 抽奖
(系统自动生成,下载前可以参看下载内容)
下载文件列表
用JAVA做的抽奖小程序.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.