- Get link
- X
- Other Apps
package com.ahmad.apandi; import java.util.Scanner; import java.util.stream.IntStream; public class Main { public static void main(String[] args) { // write your code here Scanner input = new Scanner(System. in ); int maxValueKu= 0 ,minValueKu= 0 ,jumalKu,meanOlympicKu,jumlahAngkaKu = 0 ; int array[] = new int [ 10 ]; System. out .println( "Masukan angka lalu enter ulangi sampai 10 kali." ); for ( int i = 0 ; i < array. length ; i++) { int next = input.nextInt(); jumlahAngkaKu=i; if (i == 10 ) { break ; } array[i] = next; } // get nilai terbesar maxValueKu = Main. getMaxValue (array); // get nilai terkecil minValueKu= Main. getMinValue (array); System. out .println( "Nilai yang anda masukan." ); printArray (array); jumalKu= IntStream. of (array).sum(); meanOlympicKu...