Bug 386 - Type mismatch: cannot convert from String[] to String Movie.java /gameshop/src/product
Summary: Type mismatch: cannot convert from String[] to String Movie.java /gameshop/sr...
Status: RESOLVED FIXED
Alias: None
Product: online shop management system
Classification: Unclassified
Component: Products (show other bugs)
Version: 1.0.0
Hardware: PC Windows
: Normal normal
Assignee: Samuel Yuen
URL:
Depends on:
Blocks:
 
Reported: 2020-11-01 18:29 HKT by Samuel Yuen
Modified: 2020-11-01 18:31 HKT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Yuen 2020-11-01 18:29:22 HKT
When initialize a Movie Class Object, fail to do so.

An error takes place : 
Type mismatch: cannot convert from String[] to String from
/gameshop/src/product/Movie.java

Need Code Review.
Comment 1 Samuel Yuen 2020-11-01 18:31:08 HKT
It is because the get Method is trying to retrieve a single string for the actor. 
The original purpose for the actor properties is to store a bunch of actors, the get Method has already changed to return an array of string.