当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

函数String(n,"str")的功能是()。 A.把数值型数据转换为字符串B.返回由n个字符组成


函数String(n,"str")的功能是()。

A.把数值型数据转换为字符串

B.返回由n个字符组成的字符串

C.从字符串中取出n个字符

D.从字符串中第n个字符的位置开始取子字符串

请帮忙给出正确答案和分析,谢谢!

参考答案
您可能感兴趣的试题
  • 函数String(3,”str”)的功能是()A.把数值型数据转换成字符串B.返回有3个字符串组成的字符串C

  • Given:11.Stringtest="a1b2c3";12.String[]tokens=test.split("\\d");13.for(Strings:tokens)System.out.print(s+"");Whatistheresult?()

  • 函数String(n str)的功能是()。A.把数值型数据转换为字符串B.返回由n个字符组成的字符串C.从字

  • 现有:classFlow{publicstaticvoidmain(String[]args)try{System.out.print("before");

  • classFlow{publicstaticvoidmain(String[]args){try{System.out.print("before");doRi

  • 现有:classOutput{publicstaticvoidmain(String[]args){inti=5:System.out.print("4"+i+"");System.out.print(i+5+"7");System.out.println(i+"8");}}结果为:()