Check out example codes for "if and in java". It will help you in understanding the concepts better.

Code Example 1

if(x == 1 && y == 2){
  println("x = 1 and y = 2");
}

Learn ReactJs, React Native from akashmittal.com