Easy
Given this code :
public class QuestionJava {
public static void main(String[] args) {
Integer[] tab = new Integer[3];
tab[0] = 2;
tab[1] = 5;
tab[2] = 8;
System.out.println(tab); // line 7
}
}
What should we modify at line 7 to display corretly the array and its elements?
Author: PierreStatus: PublishedQuestion passed 2307 times
Edit
5
Community EvaluationsNo one has reviewed this question yet, be the first!
7
Are arrays primitives types in Java?9
How should a package be named in Java?5
Write a valid code comment in Java24
Write a Java program that prints 'welovedev'.10
How to concatenate two strings of characters in Java?11
What is the difference between an interface and an abstract class in Java?8
Add elements to an ArrayList in Java