Java:常见数组处理代码

package text1;
import java.util.Arrays;
import java.util.Scanner;

public class Array {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		Scanner input = new Scanner (System.in);
		System.out.println("一维数组元素个数:");
		int count = input.nextInt();
		
		int [] nums = new int [count];
		System.out.println("初始化一维数组:");
		for (int i = 0; i

你可能感兴趣的:(Java)