📅  最后修改于: 2022-03-11 14:52:02.632000             🧑  作者: Mango
//Size of array
int n = 10;
//Create Array
int[] myArray = new int[n];
//Access and store last element
int lastElement = myArray[myArray.length - 1];