meaning in java code example

Example 1: java or

int num = 9;

if (num == 1 || num == 2) {
  System.out.println("Nope");
  }

if (num == 1 || num == 9) {
  System.out.println("Yep");
  }

Example 2: java meaning

if (you.mean.equals("java programming language")) {
  System.out.println("Java is a class-based, object-oriented programming language");
} else if (you.mean.equals("java coffee")) {
  System.out.print("the term java comes from an island named 'java', a famous coffee source druing the 1600s ");
}

Example 3: what does ? means in java

if((min >= 2) {
   someval =2;
} else {
   someval =1
}

Tags:

Java Example