"Eppur si muove!"
pawel hiro wrote:Sorry for asking stupid question but what's those , means?
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
OCPJP 6
pawel hiro wrote:Well thank you for help and guidance. So I created a loop which pints on the screen numbers from one to 5 and now I want to assign arguments form my array. Do I need a separate method or do I have to connected them together? how do I get involved my loop with my array? So it can print array as a list?
Campbell Ritchie wrote:3: Replace the for loop by a for-each loop
Joanne
Joanne Neal wrote:
Campbell Ritchie wrote:3: Replace the for loop by a for-each loop
He won't be able to number each line using a for-each loop.
OCPJP 6
Vinoth Kumar Kannan wrote:
Joanne Neal wrote:
Campbell Ritchie wrote:3: Replace the for loop by a for-each loop
He won't be able to number each line using a for-each loop.
Some work around can solve that too..
variable i can be declared out the loop and incremented within.
Joanne
OCPJP 6
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
- Marimuthu Madasamy
SCJP6.0,My blog Ranchers from Delhi
String[] fruits=new String[]{"orange","mango","grapes","Banana","Apple"};
OCPJP 6
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |