1. The syntax of generic classes and methods was not added until version 5.0 of Java. Nonetheless, early versions of the language had collections classes such as an array list, or a linked list. Using examples, discuss how were those classes implemented and used without the generic syntax. Why is having the syntax of generics better?

2. In the Java collection framework, there are classes for stacks, FIFO queues and priority queues. How do these three data structures differ? Give examples of applications where each of these three would be useful.

3. Design, write and test the Java program with the following requirements:

Consider an input data file which contains 20 pairs color – hexadecimal value, each pair representing a color and its associated hexadecimal value (for example Red FF0000). In the input file, each pair color – hexadecimal value should be on a separate line. Read the pairs and store them in appropriate Java Collection Framework (JCF) collection(s). Give reasons for the chosen JCF collection(s).

Sort the pairs in the increasing order of their hexadecimal values and use iterators to display the sorted pairs to the console.
Using a GUI, display the pairs as radio buttons. When the user selects a radio button, the background of the GUI should change to that color.

1. Using GUI automatic generation facilities of IDEs is not accepted.
2. The input file containing the pairs color – hexadecimal value should be manually (off-line) created using a basic text editor (such as Notepad).

1. The source file and the input file.
2. A document file (.pdf or .doc/.docx) describing your solution which should include the following sections: (1) A short problem analysis, (2) Design decisions and assumptions, (3) Short description of classes, (4) User interface, (5) Relevant test cases and screenshots, (6) Error handling, (7) Lessons learned and (8) Possible future developments. The size of the document should be of 3 pages, single spaced, font size 12.

Solution PreviewSolution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

Java Programming Questions
    $40.00 for this solution

    PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

    Find A Tutor

    View available Java Programming Tutors

    Get College Homework Help.

    Are you sure you don't want to upload any files?

    Fast tutor response requires as much info as possible.

    Upload a file
    Continue without uploading

    We couldn't find that subject.
    Please select the best match from the list below.

    We'll send you an email right away. If it's not in your inbox, check your spam folder.

    • 1
    • 2
    • 3
    Live Chats