I have a few classes I need: Score, Course, and handicap. The file is "handicap.java", thus the main class is "handicap".
If I try and nest the Score class or the Course class inside of the "handicap" class, I receive this error upon trying to instantiate an instance of either class:
handicap.java:129: non-static variable this cannot be referenced from a static context
Score sc = new Score(score, course);
^
handicap.java:141: put(java.util.GregorianCalendar,Score) in java.util.Map<java.util.GregorianCalendar,Score> cannot be applied to (java.util.GregorianCalendar,handicap.Score)
g.scores.put(greg, sc);
If I add "static" to the Score class declaration, I still receive the second error. Help?
The Code is here: http://pastebin.com/CvT1SCvb