java - Cleaning up code but not working -
i'm trying clean code little. here have far:
next class updated***
} } **errors below:** ----jgrasp exec: javac -g gradesorter.java gradesorter.java:18: error: cannot find symbol intnode = new intnode(); ^ symbol: class intnode location: class gradesorter gradesorter.java:18: error: cannot find symbol intnode = new intnode(); ^ symbol: class intnode location: class gradesorter 2 errors ----jgrasp wedge2: exit code process 1. ----jgrasp: operation complete.
the code not formatted before , single file no methods or classes. i'm trying transfer over. program working before. don't know how call variable in main class on subclass.
first off standard java style class names capatilizaed unlike method names. i.e
public class gradesorter;
i don't know if you're using try catch how want use it. right when try find file "grades.dat", if generates exception them creates , intnode object. if there no exception program ends.
edit: create intnode object using "new intnode();", call no-arg constructor of intnode class non-existant, of calls default one. make
public class intnode { public intnode() {whatever want when object created} }
Comments
Post a Comment