public class Main {
public static void main(String[] args) {
int[] ns = { 1, 4, 9, 16};
// 倒序打印数组元素:
for (int i = ns.length-1;i>-1;i--) {
System.out.println(ns [i]);
}
Sign in to make a reply
笑笑笑就知道笑i
public class Main {
public static void main(String[] args) {
int[] ns = { 1, 4, 9, 16};
// 倒序打印数组元素:
for (int i = ns.length-1;i>-1;i--) {
System.out.println(ns [i]);
}
}
}