S
Silver
Practice
My progress
Compiler
Sign in
Working…
Practice
›
Java Fundamentals
›
Module 5. Arrays & Lists
›
5.1 Arrays
Task
4
of
9
·
0
solved ·
9
to go
0%
1
2
3
4
5
6
7
8
9
You can read the problem, but answers are checked only for signed-in students.
Sign in to answer →
5.1 Arrays — print all
Total: 0 / 3 pts
Practice mode — check each part and get hints as you go.
Task
Fill in
printAll
so that it prints every element of the array on its own line.
10 20 30
Your solution
public class Main { public static void printAll(int[] arr) { // print every element on its own line } public static void main(String[] args) { int[] nums = {10, 20, 30}; printAll(nums); } }
Next task →