• 2022-06-07 问题

    public class Example { String str = new String("Java"); StringBuffer sb = new StringBuffer("C#"); public void strcat(String str, StringBuffer sb) { str = str + " study"; sb = sb.append(" exam"); } public static void main(String args[]) { Example ex = new Example(); ex.strcat(ex.str, ex.sb); System.out.println(ex.str); System.out.println(ex.sb); }}程序的输出结果是:______

    public class Example { String str = new String("Java"); StringBuffer sb = new StringBuffer("C#"); public void strcat(String str, StringBuffer sb) { str = str + " study"; sb = sb.append(" exam"); } public static void main(String args[]) { Example ex = new Example(); ex.strcat(ex.str, ex.sb); System.out.println(ex.str); System.out.println(ex.sb); }}程序的输出结果是:______

  • 2022-05-27 问题

    程序运行的结果是: good and gbc。( ) public class Example{ String str=new String(“good”); char[]ch={‘a’,'b’,'c’}; public static void main(String args[]){ Example ex=new Example(); ex.change(ex.str,ex.ch); System.out.print(ex.str+” and “); Sytem.out.print(ex.ch); } public void change(String str,char ch[]){ str=”test ok”; ch[0]=’g'; } }

    程序运行的结果是: good and gbc。( ) public class Example{ String str=new String(“good”); char[]ch={‘a’,'b’,'c’}; public static void main(String args[]){ Example ex=new Example(); ex.change(ex.str,ex.ch); System.out.print(ex.str+” and “); Sytem.out.print(ex.ch); } public void change(String str,char ch[]){ str=”test ok”; ch[0]=’g'; } }

  • 2022-05-27 问题

    对于下列代码: public class Example{ String str=new String("java"); char ch[]={'d','b','c'}; public static void main(String args[]){ Example ex=new Example(); ex.change(ex.str,ex.ch); System.out.println(ex.str+" and "+ex.ch[0]); } public void change(String str,char ch[]){ str="world";ch[0]= 'b'; } } 输出结果是: ( ) A: javaandd B: javaand C: javaandc D: javaanda

    对于下列代码: public class Example{ String str=new String("java"); char ch[]={'d','b','c'}; public static void main(String args[]){ Example ex=new Example(); ex.change(ex.str,ex.ch); System.out.println(ex.str+" and "+ex.ch[0]); } public void change(String str,char ch[]){ str="world";ch[0]= 'b'; } } 输出结果是: ( ) A: javaandd B: javaand C: javaandc D: javaanda

  • 2022-05-27 问题

    下面程序最后输出的结果是( )public class A{ String str=new String(“good”); char[] ch={‘a’,’b’,’c’}; public static void main(String args[]){ A ex=new A(); ex.change(ex.str,ex.ch); System.out.print(ex.str+””+ex.ch[0]); } public void change(String str,char ch[]){ str=”test ok”; ch[0]=’g’; }} A: good a B: good g C: test ok a D: test ok g

    下面程序最后输出的结果是( )public class A{ String str=new String(“good”); char[] ch={‘a’,’b’,’c’}; public static void main(String args[]){ A ex=new A(); ex.change(ex.str,ex.ch); System.out.print(ex.str+””+ex.ch[0]); } public void change(String str,char ch[]){ str=”test ok”; ch[0]=’g’; }} A: good a B: good g C: test ok a D: test ok g

  • 2022-06-07 问题

    下列选项中,定义空字符串正确的是() A: name=str(6) B: ex= "" C: ex="""Hello,Python""" D: ex=" "

    下列选项中,定义空字符串正确的是() A: name=str(6) B: ex= "" C: ex="""Hello,Python""" D: ex=" "

  • 2022-05-27 问题

    给定以下代码,程序的运行结果是 ()public class Example {String str=new String("good");char [] ch={'a','b','c'};public static void main(String[] args) {Example ex=new Example();ex.change(ex.str, ex.ch);System.out.print(ex.str+"and");System.out.print(ex.ch);}public void change(String str,char ch[]){str="test ok";ch[0]='g';}} A: goodandabc B: goodandgbc C: test okandabc D: test okandgbc

    给定以下代码,程序的运行结果是 ()public class Example {String str=new String("good");char [] ch={'a','b','c'};public static void main(String[] args) {Example ex=new Example();ex.change(ex.str, ex.ch);System.out.print(ex.str+"and");System.out.print(ex.ch);}public void change(String str,char ch[]){str="test ok";ch[0]='g';}} A: goodandabc B: goodandgbc C: test okandabc D: test okandgbc

  • 2022-05-27 问题

    下列程序运行的结果是______。   public class Example{   String str=new String("good");   char[]ch={’a’,’b’,’c’};   public static void main(String args[]){   Example ex=new Example();   ex.change(ex.str,ex.ch);   System.out.print(ex.str+" and ");   System.out.print(ex.ch);   }   public void change(String str,char ch[]){   str="test ok";   ch[0]=’g’;   } A: good and abc B: good and gbc C: test ok and abc D: test ok and gbc

    下列程序运行的结果是______。   public class Example{   String str=new String("good");   char[]ch={’a’,’b’,’c’};   public static void main(String args[]){   Example ex=new Example();   ex.change(ex.str,ex.ch);   System.out.print(ex.str+" and ");   System.out.print(ex.ch);   }   public void change(String str,char ch[]){   str="test ok";   ch[0]=’g’;   } A: good and abc B: good and gbc C: test ok and abc D: test ok and gbc

  • 2022-06-04 问题

    剪切图线实体需用 命令。 A: EX B: TR C: STR D: CHA

    剪切图线实体需用 命令。 A: EX B: TR C: STR D: CHA

  • 2021-04-14 问题

    对于下列代码:publicclassExample{Stringstr=newString("hello");charch[]={'d','b','c'};publicstaticvoidmain(Stringargs[]){Exampleex=newExample();ex.change(ex.str,ex.ch); System.out.println(ex.str+"and"+ex.ch[0]); } publicvoidchange(Stringstr,charch[]){str="world";ch[0]='a';}}输出结果是:

    对于下列代码:publicclassExample{Stringstr=newString("hello");charch[]={'d','b','c'};publicstaticvoidmain(Stringargs[]){Exampleex=newExample();ex.change(ex.str,ex.ch); System.out.println(ex.str+"and"+ex.ch[0]); } publicvoidchange(Stringstr,charch[]){str="world";ch[0]='a';}}输出结果是:

  • 2021-04-14 问题

    【单选题】ex amine A. ex pert B. ex cellent C. ex press D. ex ample A. ex pert B. ex cellent C. ex press D. ex ample

    【单选题】ex amine A. ex pert B. ex cellent C. ex press D. ex ample A. ex pert B. ex cellent C. ex press D. ex ample

  • 1 2 3 4 5 6 7 8 9 10