将double类型的数据3.1415926转为字符串
public class si {
public static void main(String[] args) {
double d=3.1415926;
System.out.println("d = " + d);
String str = String.valueOf(d);
System.out.println("字符串str 的值: " + str);
}
}