int Array Java

Apart char and string arrays, the most commonly used array is int Array in coding. Following code on int Array shows the initialization and declaration of an integer array and printing its elements. public class IntArray { public static void main(String args[]) { int marks[] = {40, 50, 60, 70, 80}; // int Array initialization …

int Array Java Read More »