Structuring Flight Information System using Variables
Business Scenario
Welcome back,Developers!
The SkyReserve Airways team has successfully set up their development environment and is now ready to store flight information in the system.
Before passengers can search or book flights, the application must first keep track of important details such as the airline name, source, destination, flight number, and ticket price.
As a software engineer at SkyReserve Airways, your task is to build the first flight information module by defining and storing these details using Java variables and data types.
This will serve as the foundation for all future airline reservation operations.
Pre-Lab Preparation
Topic : Java Essentials
1) Data Types, Variables, and Literals
git pull origin branchName
Git Pull
Task 1: Storing Flight Details
Create a new class “FlightData”
1
Output:
2
Great job! You have successfully stored and displayed flight details using Java variables. Your SkyReserve module is taking shape!