I have this code
public class MemSim {
public static final int NUM_PAGES = MemParam.NUM_PAGES;
public static final int NUM_PROGRAMS = MemParam.NUM_PROGRAMS;
public static final int MAX_SIZE = MemParam.MAX_SIZE;
public static final int PAGE_SIZE = MemParam.PAGE_SIZE;
public void PageUsage(int sval, int eval) {
sval = 0;
eval = NUM_PAGES - 1;
System.out.println(sval, eval);
}
}
And I am getting the error message:
MemSim.java:27: cannot find symbol
symbol : method println(int,int)
location: class java.io.PrintStream
System.out.println(sval , eval);
All signatures of System.out.println() take a single parameter, but you are passing two.
What IDE are you using? A decent IDE should have flagged this for you.
If you're not using an IDE, check the Java docs for valid classes and methods: http://docs.oracle.com/javase/7/docs/api/