KeenTween
  • Home
  • Inspire her
  • Phenom
  • STEM
  • Gender
  • FUN
  • summer fun
  • Then & Now
  • Empathy
  • About

1 of 3: If else statement in java



​2 of 3 : if you have not installed eclipse at your home computer yet:

An if statement can be followed by an optional else if...else statement, which is very useful to test various conditions using single if...else if statement.

When using if, else if, else statements there are a few points to keep in mind.
​
  • An if can have zero or one else's and it must come after any else if's.
  • An if can have zero to many else if's and they must come before the else.
  • Once an else if succeeds, none of the remaining else if's or else's will be tested.

Note For Video 1:

If you get a compilation error with a simple implementation of printf, Check that the Compiler compliance level is set to at least 1.5 for your project:

Project > Properties > Java Compiler if Enable project specific settings is not set, use the Configue Workspace Settings... link on that page to check the global Compiler compliance level. ( or just use good old println)


 >> Click Here << to learn about displaying text using printf() method in Java.


3 of 3: how to debug java using eclipse
​

Science

Technology

Engineering

Mathematics

Empowerment

  • Home
  • Inspire her
  • Phenom
  • STEM
  • Gender
  • FUN
  • summer fun
  • Then & Now
  • Empathy
  • About