Possible Duplicate:
What is the reason behind “non-static method cannot be referenced from a static context”?
import java.io.*;
public class Pay
{
boolean checkCard(int cardNumber)
{
boolean flag=false;
if(cardNumber==12)
return flag;
}
public static void main(String args[])throws SQLException
{
boolean f=checkCard(12);
System.out.println("\n Card Details "+f);
}
}
Am getting error msg saying non-static method checkCard(int,String,String) cannot be referenced from a static context
Pls help me out