Package (tự nhập) ; Import java. Util. Scanner; Public class (Tự nhập) { Public static void main (String[] args) { Scanner sc = new Scanner (System. In) ; Int[] diem = new int[5] ; For (int i = 0; i < diem. Length; i++) { While (true) { System. Out. Print ( "Nhap diem cho sinh vien" + (char) ('A' + i) + ":") ; Int input = sc. NextInt () ; If (input >= 0 && input <= 10) { Diem= input; Break; } else { System. Out. Println ( "Moi nhap lai diem, khong hop le (0-10). ") ; } } } Int max = diem[0] ; For (int i = 1; i < diem. Length; i++) { If (diem> max) { Max = diem; } } System. Out. Println ( "Sinh vien co diem cao nhat:" + max) ; } }