Task - Command Line Arguments - Flight Tickets #32
Replies: 26 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
-
|
`import java.util.; class AirTicket{ } public class PassengerOnboarding { } |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
class AirTicket { } public class PassengerOnboarding { } |
Beta Was this translation helpful? Give feedback.
-
|
`import java.text.ParseException; class AirTicket { } public class CommandLineArg { } |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
`package File_Handling; } } |
Beta Was this translation helpful? Give feedback.
-
|
import java.util.Date; class AirTicket{ } public class PassangerOnboarding { } // OUTPUT MODIFIED PASSANGER DETAILS |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Flight Booking `import java.text.DateFormat; class AirTicket { } public class PassengerOnboarding { }` |
Beta Was this translation helpful? Give feedback.
-
|
class AirTicket { } class PassengerOnboarding { } |
Beta Was this translation helpful? Give feedback.
-
|
`class AirTicket { } public class PassengerOnboarding { } |
Beta Was this translation helpful? Give feedback.
-
|
class AirTicket { } public class PassengerOnboarding { } |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
class AirTicket { } public class PassengerOnboarding { |
Beta Was this translation helpful? Give feedback.
-
|
` class AirTicket { } public class PassengerOnboarding { } |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
class AirTicket { } public class Commandargs { } |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Declare a class AirTicket that contains three String data members: passenger, source, and destination. It has a parameterized constructor, getters, and setters.
In a driver class PassengerOnboarding, create an instance of AirTicket class. Also, declare a Date data member dateOfJourney in the driver class which receives the date of journey in the dd-mm-yyyy format as a command-line argument. Create a Date object to represent the date of the journey.
Print the details of the journey, i.e. doj along with the details of the ticket.
Beta Was this translation helpful? Give feedback.
All reactions