下面的代码用于输出字符数组ch中每个字符出现的次数, 应填入(1)处的代码是 char[] ch = { 'a', 'c', 'a', 'b', 'c', 'b' }; HashMapmap = new HashMap(); for (int i = 0; i < ch.length; i++) { if(___(1)____){ map.put(ch[i], map.get(ch[i]) + 1); } else{ map.put(ch[i], 1); } } System.out.println(map);[/i][/i][/i] A: map.contains(ch[i]) B: map.containsValue(ch[i]) C: map.containsKey(ch[i]) D: map.indexOf(ch[i])
下面的代码用于输出字符数组ch中每个字符出现的次数, 应填入(1)处的代码是 char[] ch = { 'a', 'c', 'a', 'b', 'c', 'b' }; HashMapmap = new HashMap(); for (int i = 0; i < ch.length; i++) { if(___(1)____){ map.put(ch[i], map.get(ch[i]) + 1); } else{ map.put(ch[i], 1); } } System.out.println(map);[/i][/i][/i] A: map.contains(ch[i]) B: map.containsValue(ch[i]) C: map.containsKey(ch[i]) D: map.indexOf(ch[i])
182. The length of a wave is the length ______.
182. The length of a wave is the length ______.
What is the ratio of the length of the mining zone to the length of the bench?( ) A: Full length or part of it B: Full length C: Part of it D: None
What is the ratio of the length of the mining zone to the length of the bench?( ) A: Full length or part of it B: Full length C: Part of it D: None
下列代码的执行结果是: int length = "Hello".length(); System.out.println(length);
下列代码的执行结果是: int length = "Hello".length(); System.out.println(length);
在紫外可见光区有吸收的化合物() A: CH—CH—CH B: CH—CHOH C: CH=CH—CH—CH=CH D: CH—CH=CH=CH—CH
在紫外可见光区有吸收的化合物() A: CH—CH—CH B: CH—CHOH C: CH=CH—CH—CH=CH D: CH—CH=CH=CH—CH
length A: length B: launch C: lend
length A: length B: launch C: lend
已知int[][] a= {{1,2},{3,4,5,6},{7,8,9}},a.length()=_________,a[0].length()=__________, a[1].length()=__________,a[2].length()=__________,a[3].length()=__________。
已知int[][] a= {{1,2},{3,4,5,6},{7,8,9}},a.length()=_________,a[0].length()=__________, a[1].length()=__________,a[2].length()=__________,a[3].length()=__________。
返回字符串长度的是( ) A: 成员域length B: 静态成员域length C: 实例方法length() D: 静态成员方法length()
返回字符串长度的是( ) A: 成员域length B: 静态成员域length C: 实例方法length() D: 静态成员方法length()
下面判断ch是大写或者小写英文字母的表达式哪个正确? A: ch >= 'A' && ch <= 'Z' || ch >= 'a' && ch <= 'z' B: ch >= A && ch <= Z || ch >= a && ch <= z C: 'A' <= ch <= 'Z' || 'a' <= ch <= 'z' D: A <= ch <= Z || a <= ch <= z
下面判断ch是大写或者小写英文字母的表达式哪个正确? A: ch >= 'A' && ch <= 'Z' || ch >= 'a' && ch <= 'z' B: ch >= A && ch <= Z || ch >= a && ch <= z C: 'A' <= ch <= 'Z' || 'a' <= ch <= 'z' D: A <= ch <= Z || a <= ch <= z
下列语句将小写字母转换为大写字母,其中正确的是()。 A: if(ch>=’a’&ch<=’z’)ch=ch-32 B: if(ch>=’a’&&ch<=’z’)ch=ch-32 C: ch=(ch>=’a’&&ch<=’z’)?ch-32:’’ D: ch=(ch>’a’&&ch<’z’)?ch-32:ch
下列语句将小写字母转换为大写字母,其中正确的是()。 A: if(ch>=’a’&ch<=’z’)ch=ch-32 B: if(ch>=’a’&&ch<=’z’)ch=ch-32 C: ch=(ch>=’a’&&ch<=’z’)?ch-32:’’ D: ch=(ch>’a’&&ch<’z’)?ch-32:ch