为什么不让我使用 if else 语句。
public static void main(String[] args)
{
Scanner keyboard = new Scanner (System.in);
String pack;
int hours;
System.out.print("Please enter Package code: ");
pack = keyboard.nextLine();
System.out.print("Please enter Package code: ");
pack = keyboard.nextLine();
**if pack = "a";**
如果我不确定问题是什么,我会遇到错误。