kdaud

Printing Arrays

Jun 19th, 2019
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.49 KB | None | 0 0
  1. public class Alternatively {
  2.     public static void Integer_Array(){
  3.  
  4.         /**
  5.          * By: RAD-7 June 19, 2019
  6.          *
  7.          * This program is intended to store the values below [25,
  8.          * 35,15,30,44,26,18,90,75,80] and print them on the console
  9.          * each on  a new line.
  10.          */
  11.  
  12.         int[] int_Array = { 25,35,15,30,44,26,18,90,75,80 };
  13.  
  14.         for (int i=0; i<int_Array.length; i++){
  15.             System.out.println(int_Array[i]);
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment