下列选项中,合法的String型字符串常量是( )
A. ’M’ B. How are you C. ’#apple’ D. "apple"
顺序执行下列代码后,图形的颜色是( )
g.setColor(Color.red);
g.drawLine(0,0,120,208);
g.setColor(Color.green);
g.drawRect(34,20,107,206);
A.红色 红色 B.绿色 绿色 C.红色 绿色 D.绿色 红色
使用两个下标的数组被称为数组,假定有如下语句:
float scores[ ][ ] = { {1,2,3},{4,5},{6,7,8,9} };
则scores.length的值为:, scores[1].length的值为:,
scores[1][1]的值为:。