Results 1 to 3 of 3
  1. #1
    OxigEN. is offline Member
    Join Date
    Nov 2014
    Posts
    28
    Rep Power
    0

    Default I Don't Understand The 'Enchanced For Loop'

    By the title you can already understand that I don't understand (lol) what an Enchanced For Loop is.
    I know the syntax but I do not get what it does.

    My question is:

    1) What is an Enchanced For Loop.
    2) What it is used for.
    3) An Example of how to use it in a certain code.

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: I Don't Understand The 'Enchanced For Loop'

    You have a typo there, its "enhanced for loop". If you google "java enhanced for loop" you'll get all the information you ask for a dozen times over.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    OxigEN. is offline Member
    Join Date
    Nov 2014
    Posts
    28
    Rep Power
    0

    Default Re: I Don't Understand The 'Enchanced For Loop'

    Quote Originally Posted by gimbal2 View Post
    You have a typo there, its "enhanced for loop". If you google "java enhanced for loop" you'll get all the information you ask for a dozen times over.
    Oh, lol.

    Because of the typo I found a site that has so much stuff written there, therefore I came here.
    Fixed the typo (Thanks to you) and got a site that explains it in 10 lines and understood it.
    Thanks :D

Similar Threads

  1. I want to understand this...
    By WHM2 in forum New To Java
    Replies: 6
    Last Post: 01-14-2014, 09:51 PM
  2. Replies: 2
    Last Post: 11-07-2011, 02:25 AM
  3. Replies: 1
    Last Post: 10-01-2011, 02:12 AM
  4. Replies: 5
    Last Post: 02-11-2011, 08:33 PM
  5. I cant understand OOP
    By eng_hyzoom in forum New To Java
    Replies: 4
    Last Post: 11-19-2010, 04:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •