Hi,
I am facing problem with java classes.I have created an object p of Parameter type and declared it to be static.I have to call a non-static method on it p.add(getTickCount()).This method is imported from package uchicago.src.sim.engine .This is method from interface SimModel of this package .You can refer to this link to know more about the method I am talking about
http://repast.sourceforge.net/api/index.html
When I am compiling the program,it shows an compilation error
"non-static method cannot referenced by static object"
How am I supposed to refer a non-static method using static object.Is there any way I can store the result returned by getTicCount in static variable ?Please help!!!
Thank you
Sadia