期末复习代码

1.可变参数与foreach语句

import java.util.*;
public class main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner reader=new Scanner(System.in);
		   int n=reader.nextInt();
            int array[]=new int [n];
            for(int i=0;i

你可能感兴趣的:(java题目,java,算法,c++)