[主观题]

String s="zhang san,li si,wang wu"; 按字母顺序对姓名

参考答案与解析:

相关试题

String s = new String("xyz");创建了几个String

[主观题]String s = new String("xyz");创建了几个String Object?二者之间有什么区别?

  • 查看答案
  • String s = new String("xyz");创建了几个String

    [试题]String s = new String("xyz");创建了几个String Object?二者之间有什么区别?

  • 查看答案
  • String s = "Hello";s = s £« " world!";这两

    [试题]String s = "Hello";s = s + " world!";这两行代码执行后,原始的String 对象中的内容到底变了没有?

  • 查看答案
  • String s = "Hello";s = s £« " world!";这两

    [试题]String s = "Hello";s = s + " world!";这两行代码执行后,原始的String 对象中的内容到底变了没有?

  • 查看答案
  • 下列程序段:String s1=new String("How");String

    [单选题]下列程序段: String s1=new String("How"); String s2=new String("How"); System.out.println(!(s1==s2)); 的结果为A.falseB.trueC.1D.0

  • 查看答案
  • 创建字符串s:String s=new String("xyzy"):以下()将

    [单选题]创建字符串s:String s=new String("xyzy"):以下( )将改变s。A.s.append("a")B.s.concat("s")C.s.substring(3)D.以上语句都不会

  • 查看答案
  • 已知String str=new String ("Luck");,则下列关于s

    [单选题]已知String str=new String ("Luck");,则下列关于str的操作中不合法的是( )。A.String s=str. toUpperCase()B.int i=Str. length;C.char s=str. charAt(2);D.String s="Good" +str;

  • 查看答案
  • 假设有以下代码:String s="hello";String t="hello

    [单选题]假设有以下代码: String s="hello"; String t="hello"; char c[ ]={'h','e','l','l','o'}; 下列选项中,返回false的语句是______。A.s.equals(t);B.t.equals(c);C.s==t;D.t.equals(new String("hello"));

  • 查看答案
  • 设有语句组:Dim S1 As String*5S1 = "VB Test"则S

    [单选题]设有语句组:D.im S1 As String*5S1 = "VB Test"则S1的值为( )。A. VB TestB. VB TeC. VBTesD. BTest

  • 查看答案
  • 给出下列的代码,则以下()选项返回true。String s="hello";S

    [单选题]给出下列的代码,则以下( )选项返回true。 String s="hello"; String t="hello": char c[]={'h','e','l','l','o',};A.s.equals(t);B.t.equals(c);C.s==t;D.t==c;

  • 查看答案