找考题网-背景图
多项选择题

A.String s = c.readLine();B.char[ ] c = c.readLine();C.……

Given that c is a reference to a valid java.io.Console object, which two code fragments read a line of text from the console?()

A.String s = c.readLine();
B.char[ ] c = c.readLine();
C.String s = c.readConsole();
D.char[ ] c = c.readConsole();
E.String s = c.readLine("%s", "name ");
F.char[ ] c = c.readLine("%s", "name ");

热门试题