作者TonyQ (骨头)
看板java
标题Re: [问题] foreach指令
时间Fri Dec 29 14:32:50 2006
※ 引述《[email protected] (肉脚布)》之铭言:
: ==> [email protected] (巴哈专出死宅男) 提到:
: 这行有问题
: for(int tmp:a){
: 您确定您java与法对妈
这是 Java 1.5之後对for回圈新增的模式,
用途是用tmp当token扫过a集合内的所有元素。
--
这让我想到反覆器模式 囧~
--
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: 220.134.27.68