[单项选择题] 选择正确的语句填入下列程序的横线处。import java.awt.*;public class ex26 { public static void main(String[]

18 查阅

[单项选择题] 选择正确的语句填入下列程序的横线处。import java.awt.*;public class ex26 { public static void main(String[] args) { Frame f = new Frame("ex26"); MenuBar mb = new MenuBar(); ______ Menu m1 = new Menu("menu1"); Menu m2 = new Menu("menu2"); mb. add (ml); mb. add (m2); f.setSize(300, 100); f. setVisible (true); } }

A.setMenuBar(m;

B.msetMenuBar(;

C.setMenuBar(m;

D.msetMenuBar0;

参考答案:

C

计算机考试