hi guys, need some advice on this fragment of code
-------------------------------------------------
package diabetesclinic;
//importing necessary libraries
public static class TERMMANAGER
{
public Hashtable getall(int x)
{
Hashtable mappinghash = new Hashtable();
//remaining coding here
return mappinghash;
}
}
----------------------------------------------
i'd placed this java file in a folder named "diabetesclinic" but when I tried compiling, I get "modifier static not allowed here".
is it because i'm not allowed to declare a static class within a package?
or is it because the way i'd declared it is wrong?
-------------------------------------------------
package diabetesclinic;
//importing necessary libraries
public static class TERMMANAGER
{
public Hashtable getall(int x)
{
Hashtable mappinghash = new Hashtable();
//remaining coding here
return mappinghash;
}
}
----------------------------------------------
i'd placed this java file in a folder named "diabetesclinic" but when I tried compiling, I get "modifier static not allowed here".
is it because i'm not allowed to declare a static class within a package?
or is it because the way i'd declared it is wrong?