public enum Var {
VALUE1, VALUE2, VALUE3
}
Math.max(n1, n2)
=> Returns the maximum among 2 given numbersMath.min(n1, n2)
=> Returns the minimum among 2 given numbersMath.random()
=> Returns a random number(int)Math.random()*100
=> Returns a random integer number between 1 to 100 /**
* META Data
* @author: Manav Goyal
* @version: 1.0
* @since: 06-01-2022
* @return: a string while calling the function called message()
**/
new
keyword is stored herePredicate not(Predicate<? super T> target)
Optional.isEmpty()
Java –version
Javac –version
Ctrl + shift + P
=> To create a new Java projectjavac App.java -d ../bin
=> For creating .class file in bin folderRun java
=> Using Code Runner