java - one of the classes isn't compiling, would like some guidance as to how i can get it to work -
got of spec of assignment below, of has not been fulfilled, idea how bit "on completion message should written terminal window stating program completed successfully, giving number of accounts read , total balance"
thank in advance
import java.util.*; import java.io.*; public class totaloccountbalances { // instance variables - replace example below own private int count; private infile file; private scanner input; /** * method */ public void closelink() { input.close(); } /** * method */ public void processfiles() { while(input.hasnext()) { string line=input.nextline(); } count++; }
}
i think class intending do:
private infile file;
should
private file infile; private outfile file;
should be
private file outfile;
and use infile , outfile variables through rest of code. have remember variables, first thing after access modifier (private, public etc.) should data type - class or primitive - , neither infile nor outfile datatype.
Comments
Post a Comment