public class DoubletoString {
public static void main(String[] args) {
double d=2345.56;
String st=Double.toString(d);
System.out.println(st);
System.out.println(st+12345);
}
}
public static void main(String[] args) {
double d=2345.56;
String st=Double.toString(d);
System.out.println(st);
System.out.println(st+12345);
}
}
No comments:
Post a Comment