wiley_pastebin

Lesson 1 control flow 3

Mar 15th, 2019
2,298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.16 KB | None | 0 0
  1. int num = 10;
  2. boolean positive = num > 0;
  3. if(positive){  
  4.  //code here
  5. }
  6. else if(num != -1 && num != -2) {
  7.  //code here
  8. }
  9. else {
  10.  //code here
  11. }
Advertisement
Add Comment
Please, Sign In to add comment