题目内容

给出下列【代码】注释标注的代码的输出结果。import java.util.*;public class E {public static void main(String args[]) {String str = "现在时间是20:58:18";str = str.replaceAll("[^0-9:]+","");StringTokenizer fenxi = new StringTokenizer(str,":");int h = Integer.parseInt(fenxi.nextToken());int m = Integer.parseInt(fenxi.nextToken());int s = Integer.parseInt(fenxi.nextToken());System.out.printf("%d:%d:%d",h,m,s);//【代码】}}

查看答案
更多问题

给出下列【代码】注释标注的代码的输出结果。public class E {public static void main (String[]args){String str = new String ("苹果");modify(str);System.out.println(str);//【代码】}public static void modify (String s) {s = s + "好吃";}}

给出下列【代码】注释标注的代码的输出结果。import java.util.regex.*;public class E {public static void main(String args[ ]) {String s = "市话12.8元,长途:8.2元,短信10.9";String regex = "[0-9]+[.][0-9]+";Pattern p =Pattern.compile(regex);Matcher m =p.matcher(s);double sum =0;while(m.find()) {String item = m.group();sum = sum+Double.parseDouble(item);}int n = (int)sum;System.out.printf("%d",n);//【代码】}}

给出下列【代码】注释标注的代码的输出结果。import java.util.regex.*;public class E {public static void main(String args[ ]) {String s = "we are students(we are from Beijing)";String regex = "[a-zA-Z]+";Pattern p =Pattern.compile(regex);Matcher m =p.matcher(s);int count =0;String item ="";while(m.find()) {item = m.group();count ++;}System.out.printf("%d:%s",count,item);//【代码】}}

激素在血中的浓度很低,但生理效应十分明显的原因是

A. 激素的特异性强
B. 激素的半衰期长
C. 激素间有协同作用
D. 激素间有允许作用
E. 激素有高效能生物放大作用

答案查题题库