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);
}
}
我收到错误消息,说不能从静态上下文中引用非静态方法 checkCard(int,String,String)
请帮帮我