Topic: 有谁知道下面语句的语句的意思 String.valueOf(grid[2][2])

  Print this page

1.有谁知道下面语句的语句的意思 String.valueOf(grid[2][2]) Copy to clipboard
Posted by: oflyfisho
Posted on: 2005-11-19 14:07

有谁知道下面语句的语句的意思啊,请教了
String.valueOf(grid[2][2])

2.Re:有谁知道下面语句的语句的意思啊,请教了 [Re: oflyfisho] Copy to clipboard
Posted by: Infinite
Posted on: 2005-11-20 01:59

返回参数grid的字符串表示。

3.Re:有谁知道下面语句的语句的意思 String.valueOf(grid[2][2]) [Re: oflyfisho] Copy to clipboard
Posted by: anatoranato
Posted on: 2005-11-20 22:35

JDK文档中:
static String   valueOf(boolean b)
Returns the string representation of the boolean argument.
static String   valueOf(char c)
Returns the string representation of the char argument.
static String   valueOf(char[] data)
Returns the string representation of the char array argument.
static String   valueOf(double d)
Returns the string representation of the double argument.
static String   valueOf(float f)
Returns the string representation of the float argument.
static String   valueOf(int i)
Returns the string representation of the int argument.
static String   valueOf(long l)
Returns the string representation of the long argument.
static String   valueOf(Object obj)
Returns the string representation of the Object argument.
用你的g[][]里的东东对号入座一把就是了,如果是个Object 的话,就会得到Object.toString()

4.Re:有谁知道下面语句的语句的意思 String.valueOf(grid[2][2]) [Re: oflyfisho] Copy to clipboard
Posted by: oflyfisho
Posted on: 2005-11-22 23:24

谢谢拉


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923