class useTent
{
Scanner keyboard=new Scanner (System.in);
public void main (String[] args)
{
Tent t= new Tent();
HireContract hc = new HireContract();
ProcessHire(t, hc);
}
}
this is my code, and i keep getting the same error:
" Main method is not static in class useTent, please define the main method as: public static void main(String[] args) "
and when i make the it static i get the following error:
"C:\Users\Emma\Documents\opps ass1\useTent.java:22: error: non-static method ProcessHire(Tent,HireContract) cannot be referenced from a static context ProcessHire(t, hc);"
and also still the
"Error: Main method is not static in class useTent, please define the main method as: public static void main(String[] args)"