0
IM從下面的代碼Java目錄錯誤
package au.edu.uow.Collection;
import java.util.ArrayList;
import java.io.*;
public class CollectionFactory{
DVDAlbum dvd = new DVDAlbum(tempTitle,tempGenre, tempDirector, tempPlot);
}
收到以下錯誤
javac MyCollection.java ./au/edu/uow/Collection/CollectionFactory.java:109:
cannot access au.edu.uow.Collection.DVDAlbum
bad class file: ./au/edu/uow/Collection/DVDAlbum.java
file does not contain class au.edu.uow.Collection.DVDAlbum
Please remove or make sure it appears in the correct subdirectory of the classpath.
DVDAlbum dvd = new DVDAlbum(tempTitle,tempGenre, tempDirector, tempPlot);
這是DVDAlbum實施
import au.edu.uow.Collection.Album;
public class DVDAlbum implements Album{
private String Title;
private String Genre;
private String Director;
private String Plot;
private String MediaType;
public DVDAlbum(String TempTitle, String TempGenre, String TempDirector, String TempPlot){
Title = TempTitle;
Genre = TempGenre;
Director = TempDirector;
Plot = TempPlot;
}
String getMediaType(){
return MediaType;
}
String getTitle(){
return Title;
}
String getGenre(){
return Genre;
}
}
任何幫助,將不勝感激
非常感謝你,哈哈我應該知道 –