We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cafa2e commit 6a7189aCopy full SHA for 6a7189a
src/module6/wrappers/Autoboxing.java
@@ -0,0 +1,18 @@
1
+package module6.wrappers;
2
+
3
+import java.util.ArrayList;
4
+import java.util.List;
5
6
+public class Autoboxing {
7
8
+ public static void main(String[] args) {
9
10
+ int[] idades = new int[5];
11
+ String[] nomes = new String[5];
12
13
+ int idade = 26; //Integer
14
+ Integer idadeReferencia = new Integer(26);
15
+ List<Integer> numeros = new ArrayList<Integer>();
16
+ numeros.add(29); //Autoboxing
17
+ }
18
+}
0 commit comments