Changes

Jump to navigation Jump to search
86 bytes added ,  07:21, 29 April 2022
m
Line 3: Line 3:  
===With apt===
 
===With apt===
 
  <nowiki>sudo apt-add-repository ppa:webupd8team/java
 
  <nowiki>sudo apt-add-repository ppa:webupd8team/java
                                                  sudo apt-get update
+
                                                  sudo apt-get update
                                                  sudo apt-get install oracle-java8-installer</nowiki>
+
                                                  sudo apt-get install oracle-java8-installer</nowiki>
    
Also ensure your JAVA_HOME variable has been set to:
 
Also ensure your JAVA_HOME variable has been set to:
Line 279: Line 279:  
words.contains("Dog");
 
words.contains("Dog");
 
words.indexOf("Cat");
 
words.indexOf("Cat");
</syntaxhighlight>
+
</syntaxhighlight>List.of() and List.copyOf() creates unmodifiable lists copyOf is introduced on Java 10
    
===ArrayList===
 
===ArrayList===
Line 1,484: Line 1,484:  
</syntaxhighlight>
 
</syntaxhighlight>
   −
==== module-info.java ====
+
====module-info.java====
 
requires: allows usage of other modules
 
requires: allows usage of other modules
  

Navigation menu