Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] Java Loops
#3
Pretty good. But here are some things you can add/improve on;

- Explain the use of the new for loops. For example,
Code:
int[] numbers = {1,2,3,4,5,6,7,8,9,10};
          for (int item : numbers) {
            System.out.println("Count is: " + item);
          }
Hopefully you can figure that one out.

- Explain more on the do-while statement. Many people find it difficult to understand for their first time. Smile

- Also, something about the while statement. It can be infinite if its set to,
Code:
while (true) {
// execution
}

- Maybe teach them how to make infinite loops using the for statement?

Good job nonetheless. Smile
Reply


Messages In This Thread
[Tutorial] Java Loops - by Eustaquio - 10-08-2009, 01:17 AM
RE: [Tutorial] Java Loops - by TheShadow - 10-08-2009, 01:45 PM
RE: [Tutorial] Java Loops - by Project Evolution - 10-10-2009, 09:00 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Java Tutorial United States of America 0 691 01-23-2012, 03:39 PM
Last Post: United States of America
  why java haphazard 8 1,787 12-12-2011, 03:23 AM
Last Post: RDCA
  Need Java help from java expert. Blazin 2 2,101 09-07-2011, 02:43 PM
Last Post: AceInfinity
  Java help php 1 1,047 04-06-2010, 06:41 AM
Last Post: php
  Java Problem for real java programmer Testgamma1 10 5,177 03-14-2010, 09:08 AM
Last Post: uber1337

Forum Jump:


Users browsing this thread: 1 Guest(s)