This is probably an easy one that i know but its not coming to me. Im supposed to be hardcoding the 6 instances of a movie class into the array that i have set up. I am unsure where i would do that in my actuall code.
public class movie {
private String title;
private int fightScenes;
private int romanticScenes;
private int musicalScenes;
public movie (String name, int fight, int romance, int musical){
title = name;
fightScenes = fight;
romanticScenes = romance;
musicalScenes = musical;
}
public String getTitle(){
return title;
}
public int getFightScenes(){
return fightScenes;
}
public int getRomanticScenes(){
return romanticScenes;
}
public int getMusicalScenes(){
return musicalScenes;
}
public static void main(String[] args) {
// TODO Auto-generated method stub
final int numMovies = 6;
int[] movies = new int[numMovies];
}
}