99999999999999class Test1 { public static void main(String[] args) { int [] arr = new int []{1,2,3,4,5,6,7,8,9}; arr1(arr); } public static void arr1(int[] arr){ for (int i =0;i<arr.length ;i++ ) { int j = arr[i]; System.out.print(j); } //return j; } } |