Description
The following workshop lets you practice basic java coding techniques, creating classes, methods, using arrays, Java I/O, inheritance, polymorphism, Exceptional Handling, JavaFx (GUI). The focus will be practicing for JavaFx concepts.
Task 1: Write a program to display a simple Address Book screen as show below
Task 2 (Event-Handling): The following task is a continuity of Task – 1and based on some research as well.
Research Part:
During the lecture of Week 5 and in the workshop 4 you have practiced different concepts on
- How to read a file.
- How to write a file.
- Mostly everyone has practiced FileReader or FileWriter, FileInputStream or FileOutputStream, Buffered Readers etc.
- Task – 2 required you to first search on RandomAccessFile in Java, o
- Where to use it.
- How to use it.
Once you have read about the advantages and disadvantages of the RandomAccessFile in java then you can start the coding for the workshop.
Coding Part:
Write a program that stores, retrieves, adds and updates addresses as shown in the figure below.
- Use random access file for reading and writing an address.
- When the program starts your files should contains minimum 5 proper records [make sure the added records are proper not some random strings and/ or postal code etc].
Hint: Use fixed-length string for storing each attribute in the address.
Deliverables for Task – 2: there will be two different deliverables for this workshop.
- A word document includes your findings about Random Access File.
- Advantages
- Disadvantages
- Constructors
- Methods
Note: Also include your references from where you search.
Code for the application.





