• 2022-06-10 问题

    将字符串s中的所有字母变为大写字母的方法是( ) A: s.toSmallCase() B: s.toLowerCase() C: s.toUpperChars() D: s.toUpperCase()

    将字符串s中的所有字母变为大写字母的方法是( ) A: s.toSmallCase() B: s.toLowerCase() C: s.toUpperChars() D: s.toUpperCase()

  • 2022-10-29 问题

    下面选项中函数使用正确的是()。 A: 'miNI'.toUpperCase() B: toUpperCase('miNI') C: 'miNI'.toLowerCase() D: toLowerCase('miNI')

    下面选项中函数使用正确的是()。 A: 'miNI'.toUpperCase() B: toUpperCase('miNI') C: 'miNI'.toLowerCase() D: toLowerCase('miNI')

  • 2022-05-28 问题

    下面的哪些程序片断可能导致错误() A: String s = "Gone with the wind";  String t = " good ";  String k = s + t; B: String s = "Gone with the wind";  String t;  t = s[3] + "one"; C: String s = "Gone with the wind";  String standard = s.toUpperCase(); D: String s = "home directory"; String t = s - "directory"

    下面的哪些程序片断可能导致错误() A: String s = "Gone with the wind";  String t = " good ";  String k = s + t; B: String s = "Gone with the wind";  String t;  t = s[3] + "one"; C: String s = "Gone with the wind";  String standard = s.toUpperCase(); D: String s = "home directory"; String t = s - "directory"

  • 2022-10-28 问题

    Java中,以下代码会报错会报错的两项是() A: String s = "Gone with the wind"; String t = " good "; String k = s + t; B: String s = "Gone with the wind"; String t; t = s[3] + "one"; C: String s = "Gone with the wind"; String standard = s.toUpperCase(); D: String s = "home directory"; String t = s - "directory";

    Java中,以下代码会报错会报错的两项是() A: String s = "Gone with the wind"; String t = " good "; String k = s + t; B: String s = "Gone with the wind"; String t; t = s[3] + "one"; C: String s = "Gone with the wind"; String standard = s.toUpperCase(); D: String s = "home directory"; String t = s - "directory";

  • 2022-05-28 问题

    下面的哪些程序片断可能导致错误?() A: Strings=“Gonewiththewind”;Stringt=“good“;Stringk=s+t; B: Strings=“Gonewiththewind”;Stringt;t=s[3]+“one”; C: Strings=“Gonewiththewind”;Stringstandard=s.toUpperCase(); D: Strings=“homedirectory”;Stringt=s–“directory”;

    下面的哪些程序片断可能导致错误?() A: Strings=“Gonewiththewind”;Stringt=“good“;Stringk=s+t; B: Strings=“Gonewiththewind”;Stringt;t=s[3]+“one”; C: Strings=“Gonewiththewind”;Stringstandard=s.toUpperCase(); D: Strings=“homedirectory”;Stringt=s–“directory”;

  • 2022-05-28 问题

    下面的哪些程序片断可能导致错误?( )。 A: String s="Gone with the wind";String t;t=s[3]+"one"; B: String s="Gone with the wind";String t="good";String k=s+t; C: String s="Gone with the wind";String standard=s.toUpperCase(); D: String s="home directory";String t=s-"directory";

    下面的哪些程序片断可能导致错误?( )。 A: String s="Gone with the wind";String t;t=s[3]+"one"; B: String s="Gone with the wind";String t="good";String k=s+t; C: String s="Gone with the wind";String standard=s.toUpperCase(); D: String s="home directory";String t=s-"directory";

  • 2022-05-31 问题

    以下哪个方法可以返回字符串的长度: A: length() B: compareto() C: indexof() D: touppercase()

    以下哪个方法可以返回字符串的长度: A: length() B: compareto() C: indexof() D: touppercase()

  • 2022-05-28 问题

    以下函数中返回结果是整型的是( )。 A: toUpperCase() B: eplace() C: charAt() D: lastIndexOf()

    以下函数中返回结果是整型的是( )。 A: toUpperCase() B: eplace() C: charAt() D: lastIndexOf()

  • 2022-06-28 问题

    将String转成字符数组用哪个方法() A: toCharArray() B: getBytes() C: toLowerCase() D: toUpperCase()

    将String转成字符数组用哪个方法() A: toCharArray() B: getBytes() C: toLowerCase() D: toUpperCase()

  • 2022-07-22 问题

    Java语言中用来拆分字符串的方法是 A: replace() B: split() C: toLowerCase() D: toUpperCase()

    Java语言中用来拆分字符串的方法是 A: replace() B: split() C: toLowerCase() D: toUpperCase()

  • 1 2 3 4 5 6 7 8 9 10