6.7-2 将数组中最小数输出

package shuzu;

import java.util.Arrays;

public class Min {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		int arr[] = {4,7,6,2,9};
		Arrays.sort(arr);
		System.out.println(arr[0]);
	}

}

  

posted @ 2015-10-10 08:44  dirgo  阅读(265)  评论(0编辑  收藏  举报