public class StringtoDouble {
public static void main(String[] args) {
String string="2345.4567";
double d=Double.parseDouble(string);
System.out.println(d);
System.out.println(d+23.56);
}
}
public static void main(String[] args) {
String string="2345.4567";
double d=Double.parseDouble(string);
System.out.println(d);
System.out.println(d+23.56);
}
}
No comments:
Post a Comment