Java: Converting long to double

While Integers has to be parsed from a String, doubles can simply be casted:

String bar = "9.99";
Double foo = (double)bar;

Comments are closed.