package example;
import com.caucho.util.L10N;
import java.util.logging.Logger;
import java.util.logging.Level;
import java.util.Random;
import java.util.HashMap;
/**
* Professor Trelawney's magic 8 ball.
* The magic 8 ball will return a prophecy with getProphecy().
*
* <p>The default prophet is Professor Trelawney (of course). If you wish to
* change the prophet that provides the answer, use
* setProphet(name), where name is one of "trelawney", "classic", or "kingwu".
*/
public class Magic8Ball {
static protected final Logger log =
Logger.getLogger(Magic8Ball.class.getName());
static final L10N L = new L10N(Magic8Ball.class);
private final static String DEFAULT_PROPHET = "trelawney";
private Random _random = new Random();
private String _prophet = DEFAULT_PROPHET;
private HashMap _prophets = new HashMap();
public Magic8Ball()
{
_prophets.put("trelawney",new String[] {
"The future for you is very dire",
"Within a fortnight you will surely die",
"Grave trouble awaits you",
"You must not leave the room",
"The stars are aligned for grave injury",
});
_prophets.put("classic",new String[] {
"Signs point to yes",
"Yes",
"Reply hazy, try again",
"Without a doubt",
"My sources say no",
"As I see it, yes",
"You may rely on it",
"Concentrate and ask again",
"Outlook not so good",
"It is decidedly so",
"Better not tell you now",
"Very doubtful",
"Yes - definitely",
"It is certain",
"Cannot predict now",
"Most likely",
"Ask again later",
"My reply is no",
"Outlook good",
"Don't count on it",
});
_prophets.put("kingwu",new String[] {
"THE CREATIVE works sublime success, Furthering through perseverance.",
"THE RECEPTIVE brings about sublime success, Furthering through the perseverance of a mare. If the superior man undertakes something and tries to lead, He goes astray; But if he follows, he finds guidance. It is favorable to find friends in the west and south, To forego friends in the east and north. Quiet perseverance brings good fortune.",
"DIFFICULTY AT THE BEGINNING works supreme success, Furthering through perseverance. Nothing should be undertaken. It furthers one to appoint helpers.",
"YOUTHFUL FOLLY has success. It is not I who seek the young fool; The young fool seeks me. At the first oracle I inform him. If he asks two or three times, it is importunity. If he importunes, I give him no information. Perseverance furthers.",
"WAITING. If you are sincere, You have light and success. Perseverance brings good fortune. It furthers one to cross the great water.",
"CONFLICT. You are sincere And are being obstructed. A cautious halt halfway brings good fortune. Going through to the end brings misfortune. It furthers one to see the great man. It does not further one to cross the great water.",
"THE ARMY. The army needs perseverance And a strong man. Good fortune without blame.",
"HOLDING TOGETHER brings good fortune. Inquire of the oracle once again Whether you possess sublimity, constancy, and perseverance; Then there is no blame. Those who are uncertain gradually join. Whoever come too late Meets with misfortune.",
"THE TAMING POWER OF THE SMALL Has success. Dense clouds, no rain from our western region. ",
"TREADING. Treading upon the tail of the tiger. It does not bite the man. Success.",
"PEACE. The small departs, The great approaches. Good fortune. Success.",
"STANDSTILL. Evil people do not further The perseverance of the superior man. The great departs; the small approaches.",
"FELLOWSHIP WITH MEN in the open. Success. It furthers one to cross the great water. The perseverance of the superior man furthers.",
"POSSESSION IN GREAT MEASURE. Supreme success.",
"MODESTY creates success. The superior man carries things through.",
"ENTHUSIASM. It furthers one to install helpers And to set armies marching.",
"FOLLOWING has supreme success. Perseverance furthers. No blame.",
"WORK ON WHAT HAS BEEN SPOILED Has supreme success. It furthers one to cross the great water. Before the starting point, three days. After the starting point, three days.",
"APPROACH has supreme success. Perseverance furthers. When the eighth month comes, There will be misfortune.",
"CONTEMPLATION. The ablution has been made, But not yet the offering. Full of trust they look up to him.",
"BITING THROUGH has success. It is favorable to let justice be administered.",
"GRACE has success. In small matters It is favorable to undertake something.",
"SPLITTING APART. IT does not further one To go anywhere.",
"RETURN. Success. Going out and coming in without error. Friends come without blame. To and fro goes the way. On the seventh day comes return. It furthers one to have somewhere to go.",
"INNOCENCE. Supreme success. Perseverance furthers. If someone is not as he should be, He has misfortune, And it does not further him To undertake anything.",
"THE TAMING POWER OF THE GREAT. Perseverance furthers. Not eating at home brings good fortune. It furthers one to cross the great water.",
"THE CORNERS OF THE MOUTH. Perseverance brings good fortune. Pay heed to the providing of nourishment And to what a man seeks To fill his own mouth with.",
"PREPONDERANCE OF THE GREAT. The ridgepole sags to the breaking point. It furthers one to have somewhere to go. Success.",
"The Abysmal repeated. If you are sincere, you have success in your heart, And whatever you do succeeds.",
"THE CLINGING. Perseverance furthers. It brings success. Care of the cow brings good fortune.",
"Influence. Success. Perseverance furthers. To take a maiden to wife brings good fortune.",
"DURATION. Success. No blame. Perseverance furthers. It furthers one to have somewhere to go.",
"RETREAT. Success. In what is small, perseverance furthers.",
"THE POWER OF THE GREAT. Perseverance furthers. ",
"PROGRESS. The powerful prince Is honored with horses in large numbers. In a single day he is granted audience three times.",
"DARKENING OF THE LIGHT. In adversity It furthers one to be persevering.",
"THE FAMILY. The perseverance of the woman furthers. ",
"OPPOSITION. In small matters, good fortune.",
"OBSTRUCTION. The southwest furthers. The northeast does not further. It furthers one to see the great man. Perseverance brings good fortune.",
"DELIVERANCE. The southwest furthers. If there is no longer anything where one has to go, Return brings good fortune. If there is still something where one has to go, Hastening brings good fortune.",
"DECREASE combined with sincerity Brings about supreme good fortune Without blame. One may be persevering in this. It furthers one to undertake something. How is this to be carried out? One may use two small bowls for the sacrifice.",
"INCREASE. It furthers one To undertake something. It furthers one to cross the great water.",
"BREAK-THROUGH. One must resolutely make the matter known At the court of the king. It must be announced truthfully. Danger. It is necessary to notify one's own city. It does not further to resort to arms. It furthers one to undertake something.",
"COMING TO MEET. The maiden is powerful. One should not marry such a maiden.",
"GATHERING TOGETHER. Success. The king approaches his temple. It furthers one to see the great man. This brings success. Perseverance furthers. To bring great offerings creates good fortune. It furthers one to undertake something.",
"PUSHING UPWARD has supreme success. One must see the great man. Fear not. Departure toward the south Brings good fortune.",
"OPPRESSION. Success. Perseverance. The great man brings about good fortune. No blame. When one has something to say, It is not believed.",
"THE WELL. The town may be changed, But the well cannot be changed. It neither decreases nor increases. They come and go and draw from the well. If one gets down almost to the water And th
没有合适的资源?快使用搜索试试~ 我知道了~
resin-pro-3.1.11
共868个文件
xtp:317个
java:148个
xml:96个
需积分: 10 12 下载量 160 浏览量
2011-08-28
23:34:35
上传
评论
收藏 10.7MB RAR 举报
温馨提示
Resin是CAUCHO公司(http://www.caucho.com/)的产品,是一个非常流行的支持 servlets 和jsp的引擎,速度非常快。Resin本身包含了一个支持HTTP/1.1的WEB服务器。虽然它可以显示动态内容,但是它显示静态内容的能力也非常 强,速度直逼APACHE SERVER。许多站点都是使用该WEB服务器构建的
资源推荐
资源详情
资源评论
收起资源包目录
resin-pro-3.1.11 (868个子文件)
access.log.20110423 518B
configure.ac 26KB
amber-lifecycle.ai 226KB
amber-non-xa.ai 192KB
Makefile.am 1018B
jni_vfs.c 58KB
config.c 39KB
mod_caucho.c 32KB
stream.c 32KB
mod_caucho.c 31KB
ssl.c 29KB
lru.c 14KB
heap.c 9KB
std.c 8KB
boot.c 7KB
jni_os.c 7KB
profile.c 6KB
jni_jvmti.c 4KB
memory.c 4KB
jni_jvmdi.c 4KB
java.c 3KB
memory.c 3KB
ssl_stub.c 2KB
symbol.c 2KB
crc64.c 1015B
_index__jsp.class 6KB
platform.conf 10KB
resin.conf 10KB
development.conf 3KB
minimal.conf 641B
fine.conf 270B
configure 462KB
default.css 6KB
default.css 3KB
portal.css 897B
default.css 88B
log_name_.db 256KB
log_.db 256KB
resin.def 3KB
resinssl.def 381B
resin_os.def 242B
resin-war.digest 22B
isapi_srun.dll 154KB
isapi_srun.dll 138KB
resin.dll 119KB
resin.dll 107KB
mod_caucho.dll 103KB
resinssl.dll 66KB
resinssl.dll 61KB
resin_os.dll 54KB
resin_os.dll 54KB
setup.exe 107KB
httpd.exe 93KB
xslt-perf.gif 11KB
amber-lifecycle.gif 10KB
jsp_perf.gif 8KB
jsp_log.gif 7KB
assembler-eg1.gif 7KB
appserver.gif 5KB
jndi_tree.gif 5KB
website_srun.gif 5KB
compiler.gif 4KB
apache_srun.gif 4KB
webserver.gif 4KB
iis_srun.gif 4KB
amber-non-xa.gif 4KB
sticky-sessions.gif 3KB
httpd.gif 3KB
backup.gif 3KB
srunc.gif 3KB
caucho.gif 3KB
same_srun.gif 2KB
hbleed.gif 1KB
resin-powered.gif 1KB
hbleed.gif 1KB
jsp.gif 904B
bean1.gif 902B
bean.gif 900B
style.gif 899B
script.gif 889B
file.gif 864B
folder.gif 861B
logo.gif 571B
resin_powered.gif 571B
CauchoFLY_red32.gif 419B
CauchoFLY_blu32.gif 418B
background.gif 386B
CauchoFLY_red16.gif 305B
CauchoFLY_blu16.gif 303B
ball8.gif 197B
left_background.gif 165B
left_background.gif 165B
pixel.gif 61B
pixel.gif 61B
config.guess 45KB
cse.h 11KB
resin.h 5KB
version.h 1KB
hessian-serialization.html 67KB
hessian-ws.html 37KB
共 868 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9
资源评论
财富港湾
- 粉丝: 0
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 农村信用社联合社计算机信息系统投产与变更管理办.docx
- 农村信用社联合社计算机信息系统数据管理办法.docx
- 利用SPSS作临床效度分析线上计算网站介绍-医学研究部统计谘.(医学PPT课件).ppt
- 利用Zabbix监控mysqldump定时备份数据库状态.docx
- 利用计算机解决问题的基本过程.doc
- 化工铁路通信工程总结.doc
- 北京大学网络教育软件工程作业.docx
- 医药公司(连锁店)计算机操作规程未新系统的自行按照旧制修改-新系统过制的编号加修模版.doc
- 医药公司(连锁店)计算机系统操作规程模版.doc
- 医药连锁门店计算机系统的操作和管理程序未新系统的自行按照旧制修改-新系统过制的编号加修模版.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功