If statement for range numbers

+1 Gilbert Diaz · July 26, 2014
Hi Bucky; 

I'm just started to learn java and my question is about the if statement. I would like to do an if statement that is more complex that the one you teach on the video. Is about school grades. 
If the value is >= 80 but <90 then system.out.print("B"). 
What is the command to include more than one value inside the if statement?? 

Respectfully 
Gilbert Diaz

Post a Reply

Replies

Oldest  Newest  Rating
0 Gilbert Diaz · July 26, 2014
Yes!
+1 Bucky Roberts · July 26, 2014
if(value>=80 && value<90){
System.out.print("B");
}

is that what you meant?
  • 1

Javascript

107,273 followers
About

A scripting language that is added to standard HTML to create interactive effects, apps, games for the browser.

Links
Moderators