Data type [] Array name = Data type [Number of elements];
Array.java
String[] aaa = new String[100];
aaa[0] = "Sentence";
String bbb = aaa[0];
List object name = new ArrayList <> ();
List.java
List<String> aaa = new ArrayList<>();
aaa.add("AA");
aaa.get(0);
Map <key type, value type> object name = new HashMap <> ();
Map.java
Map<Integer, String> aaa = new HashMap<>();
aaa.put(1, "Sentence");
aaa.get(1);
No commentary needed, I forgot how to initialize it, so I'd like to move it for the time being because it's okay with texto .... For those times, I've listed only the simple ones so you don't get lost.
Recommended Posts