Understanding SWITCH Statement in Java using Eclipse IDE

Words
212
Reading
1 min
Listen
Play
9y

In this tutorial, you will learn the following:

  • Conditional Statement (Switch Statement). Switch Statement is a conditional statement meaning that a certain condition being true will cause a particular block of code to be executed and being false will thereby cause another block of code to be executed.

You would need the following inorder to following this tutorial:

  • An Integrated Development Environment(IDE) installed that can run Java (e.g Netbeans, Eclipse)
  • JDK 1.X installed on your Pc
  • Of course willingness to learn

Difficulty

  • Intermediate

Description

The Switch statement is being explained here and a simple application is created where the user inputs a certain value ranging from 1 - 7 and then is being firstly told what day of the week the value stands for (i.e 1 = Monday, 5 = Friday).
The Application is then changed to indicate if the value enetered falls under Week days or Week ends (i.e Monday is Week Day and Friday is Weekend)

Video Tutorial Link:

Curriculum

Below are a list of related videos that will make you understand this better!

Tutorial Logo

NB: This video has only being shared on my Youtube Channel



Posted on Utopian.io - Rewarding Open Source Contributors

Understanding SWITCH Statement in Java using Eclipse IDE | Ecency