Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- //this is a repitition statement
- //
- public class RepititionStatements {
- public static void main(String [] args) {
- //this is a enhanced for loop example
- int [] intArray = new int[] {1,2,3,4,5,6};
- for (int a : intArray)
- {
- System.out.println(a + " ");
- }
- }
- }
- --copy until here--
- OUTPUT:
- 1
- 2
- 3
- 4
- 5
- 6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement