1. 程式人生 > >[Java in NetBeans] Lesson 08. If: conditional statement

[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    !