import java.util.ArrayList;
public class 2 {
public static float ortalama(ArrayList<Integer> x) {
return (float) x.stream().mapToInt(i -> i).average().getAsDouble();
}
public static void main(String[] args) {
ArrayList<Integer> myList = new ArrayList<Integer>();
myList.add(3);
myList.add(5);
myList.add(1);
myList.add(7);
System.out.println("Ortalama: " + ortalama(myList));
}
}