作者TonyQ (骨头)
看板java
标题Re: [问题] 字串比较的问题
时间Sat Feb 17 20:19:07 2007
有个用空间换取时间的方法,
用String 作hash建表。
再直接对HASH後的内容处理:P
这个问题让我想到State Pattern
不过要用在指令判定上 这可能不太适用..;p
--
String temp="relax"; | Life just like programing
while(buringlife) String.forgot(temp); | to be right or wrong
while(sleeping) brain.setMemoryOut(); | need not to say
stack.push(life.running); | the complier will
stack.push(scouting.buck()); | answer your life
stack.push(bowling.practice()); | Bone
everything
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 218.171.121.11