Re: [問題] foreach指令
※ 引述《brucetsao.bbs@bbs.mgt.ncu.edu.tw (肉腳布)》之銘言:
: ==> tvbic.bbs@ptt.cc (巴哈專出死宅男) 提到:
: 這行有問題
: 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
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 6 之 6 篇):