Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

how to include AND statement in java code example

Example 1: if and in java

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

Example 2: java if a or b

if(a || b){
  doSomething();
}

/*
For if queries: || (OR), && (AND), == (EQUALS), != (DOES NOT EQUAL)
				< (LESS THAN), > (GREATER THAN), <= (LESS THAN OR EQUAL TO),
                >= (GREATER THAN OR EQUAL TO)
*/

Tags:

Java Example

Related

random between 0 and 10 php code example how to create new screen in flutter code example simple tkinter test python script code example service iconfiguration appsettings.json code example Best place to initialize in dart singleton code example how to get rows and columns in numpy array for loop code example discord.py streaming code example angualr js cdn code example execute .exe in linux code example twitter tweet link code example set keyword in javascript code example get sum of objects in array javascript code example

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy