Extended Version of for Loop in Java

As of Java 5, the upgraded for loop was presented. This is basically utilized for Arrays. The syntax for this loop is as follows: for(declaration : statement) { //Statements } Declaration: The recently declared variable, which is of a sort perfect with the components of the show you are getting to. The variable will be … Read more