KEMBAR78
Java M A401 | PDF | Constructor (Object Oriented Programming) | Programming
0% found this document useful (0 votes)
3 views5 pages

Java M A401

The document outlines a training assignment for Java Basics, specifically focusing on Java Collections. It details the objectives, specifications, and functional requirements for creating classes such as Multimedia, Song, and Video, along with a management class for multimedia items. The assignment aims to enhance understanding of ArrayLists and their application in solving problems through a Java console program.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views5 pages

Java M A401

The document outlines a training assignment for Java Basics, specifically focusing on Java Collections. It details the objectives, specifications, and functional requirements for creating classes such as Multimedia, Song, and Video, along with a management class for multimedia items. The assignment aims to enhance understanding of ArrayLists and their application in solving problems through a Java console program.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

JAVA BASICS

T ra in in g As s ig nmen ts

Document Code 25e-BM/HR/HDCV/FSOFT

Version 1.1

Effective Date 20/11/2012

Hanoi, 06/2019
Lab Guides Java Basics Issue/Revision: x/y

RECORD OF CHANGES

No Effective Date Change Description Reason Reviewer Approver

1. 01/Oct/2018 Create new Draft DieuNT1 VinhNV

2. 01/Jun/2019 Fsoft template Update DieuNT1 VinhNV

25e-BM/HR/HDCV/FSOFT v1.1 Internal use 2/5


Lab Guides Java Basics Issue/Revision: x/y

Contents
Day 5. Assignment 4: Java Collections............................................................................................4
Objectives: ...................................................................................................................................4
Specifications:..............................................................................................................................4
Functional Requirements .............................................................................................................4
Screen Requirements ..................................................................................................................5
Guidelines:...................................................................................................................................5

25e-BM/HR/HDCV/FSOFT v1.1 Internal use 3/5


Lab Guides Java Basics Issue/Revision: x/y

CODE: JAVA.M.A401
TYPE: MEDIUM
LOC: 190
DURATION: 90 MINUTES

Day 5. Assignment 4: Java Collections


Objectives:

» To understand basic concept of ArrayList


» To declare ArrayList of strings and use common methods of ArrayList

» Use ArrayList to solve simple problems.

Specifications:
The Multimedia abstract class has some of attributes: name, duration (minutes, double),
setter/getter/constructor methods and concrete createMultimedia() method to input value for all of attributes.
The Song class inherits from Multimedia has an additional attribute: singer, and some of following methods:
o Default constructor.
o Constructor has 3 parameters to initialize value of attributes.
o Method createSong() to create a new song, calls createMultimedia() method of super class.
o Override the method toString() that returns song information.
The Video class inherit from Multimedia has some additional following methods:
o Default constructors.
o Constructor has 2 parameters to initialize value of attributes.
o Method createVideo() to create a new video, , calls createMultimedia() method of super class.
o Override the method toString() that returns video information.
A class named MultimediaManagement that has an attribute: List<Multimedia> listOfMultimedia and some
of following methods:
▪ Constructor have 1 parameter to initialize a new listOfMultimedia.
▪ addMultiMedia(Multimedia multimedia) to add a new multimedia to list.
▪ displayMultiMedia() to display list of multimedia.

Functional Requirements

» Write a java console program to resolve this assignment.

25e-BM/HR/HDCV/FSOFT v1.1 Internal use 4/5


Lab Guides Java Basics Issue/Revision: x/y

Screen Requirements

Guidelines:
» Create a new project named Java.M.A401.

» Package fa.training.entities that contains three classes: Multimedia, Song, Video.


» Package fa.training.management that contains class: MultimediaManagement.
» Package fa.training.main contains class: Test that contains main() method to run program.

25e-BM/HR/HDCV/FSOFT v1.1 Internal use 5/5

You might also like