-->
当前位置:首页 > 题库

单选题:How can a programmer add a separator to a Menu? Assume there is

Luz5年前 (2021-05-10)题库1142
How can a programmer add a separator to a Menu? Assume there is a `Menu` object called `myMenu`. @[C](2)

A. myMenu.add(MenuItem.SEPARATOR);
B. myMenu.add(new MenuItem("-"));
C. myMenu.addSeparator();
D. None of the above();




A.myMenu.add(MenuItem.SEPARATOR);
B.myMenu.add(new MenuItem("-"));
C.myMenu.addSeparator();
D.None of the above();


答案:C