• 2022-06-18
    定义并初始化一个用于存放我们国家的四个直辖市的数组cityName,四个直辖市为:北京,上海,天津,重庆. 正确的是_________
    A: String[] cityName=new String[4]{"北京","上海","天津","重庆"};
    B: String[] cityName=new String[]{"北京","上海","天津","重庆"};
    C: String[] cityName={"北京","上海","天津","重庆"};
    D: String cityName = new String[4] { "北京", "上海", "天津", "重庆" };
  • 举一反三