I\'m trying to use the below code to calculate the average of a set of values that a user enters and display it in a jTextArea but it does not work properly. Sa
jTextArea
List.stream().mapToDouble(a->a).average()