import java.util.*;
public class Demo {
/**
* @param args
*/
public static void main(String[] args) {
String MovieTitle;
String rating;
double firstWeekRev;
MovieList[] name = new MovieList();
name.getFieldNames();
name.getMovieRec();
// TODO Auto-generated method stub
}
}
the movie list is the class file
classname variablename;
variablename = new classname;
I have tried putting in a constructor but it freaks when I do that. Would the constructor go before the object or after it. It would make sense to me it would go after it because a constructor set the values of the instance variables.

New Topic/Question
Reply




MultiQuote




|