For Loop in Java.

In Java, for loop is a loop that facilitates a user to execute a block of a statements iteratively for a fixed number of times.

Code :