Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: aa aa
Added: Nov 23, 2021 7:44 AM
Views: 637
Tags: no tags
  1. for (int c1 = 0, c2 = array.length-1; c1 <= c2 ; c1++, c2--) {
  2.            
  3.             System.out.print(array[c1]+" "+array[c2]+" ");
  4.        
  5.         }