toString trong java

m.n giúp e bài này với ạ!!

em có 2 class CDS và USBStick. và 1 class là Medien. Và trong class Medien em phải tạo 1 Method có yêu cầu như sau:

• A media archive method can be called with a string as a parameter indicating a media type. If there is no media for this type, a corresponding error message will be displayed. Should the type be present, e.g. “CD” calls the toString () method of all CDs managed in the Media Archive.

m.n gỡ rối giúp e vs ạ

83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?