[Java in NetBeans] Lesson 08. If: conditional statement

这个课程的参考视频和图片来自youtube

    主要学到的知识点有:

1. If-else statement

if (x > 5)
{
   System.out.println("Input x is bigger than 5. ");
}
else
{
   System.out.println("Input x is not bigger than 5. ");
}

2. Logical operators

  • AND    &&
  • OR      ||
  • NOT    !

猜你喜欢

转载自www.cnblogs.com/Johnsonxiong/p/10117413.html
今日推荐