Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Challenge: Autoboxing in Collections | Type Conversion and Wrapper Classes
Java Data Types
セクション 3.  5
single

single

bookChallenge: Autoboxing in Collections

メニューを表示するにはスワイプしてください

タスク

スワイプしてコーディングを開始

Implement a method that calculates and returns the average value of all elements in the provided ArrayList as a double.

  • Complete the method so it uses a loop to sum all values in the input list.
  • Calculate the average as a double and return it from the method.
  • In the main method, call your method and print the result using this template: Average value: {average}.

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 3.  5
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt