×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: William Chalifoux
Added: Mar 17, 2021 7:15 PM
Views: 4784
Tags: no tags
  1. //Making an array
  2.         /*
  3.             int Array_Length=3;
  4.             datatype[] arrayname = new datatype [Array_length];
  5.         */
  6.         int Array_Length=3;
  7.         int[] ArrayName = new int[Array_Length];
  8. //adding to the array
  9.         int j;
  10.         for (j = 0;j < 3; j++) {
  11.         ArrayName[j]=Variable1;    
  12.         }
  13.         System.out.println("\n\n");
  14.