Java Data Type How to - Convert from double to String








Question

We would like to know how to convert from double to String.

Answer

 


public class Main {
  public static void main(String[] args) throws Exception {

    String str = Double.toString(23);
  }
}