嘿伙计们,我在接口中创建常量数组时遇到了一点问题。这些常量将用于在框架中存储一些菜单选项
public interface Constants
{
int X_POS = 100,
Y_POS = 320,
X_FACTOR = 2,
Y_FACTOR = 3;
String [] MENU_CHOICE = ("File", "Edit", "Help");
String TITLE = "My First Java Graphical User Interface";
}
MENU_CHOICE 数组不断给我语法错误。它说(“)”,“”,“=”)预期。