package com.cetc55; public class Dome3 { public static void main(String[] args) { int max = 0; int []array = { 1, 325, 235, 35, 464, 654, 7, 756 }; for (int i = 0; i < array.length; i++) { if (array[i] > max){ max = array[i]; } System.out.println(array[i]); } System.out.println("最大數爲:" + max); } }