DecimalFormat fmt = new DecimalFormat(“0.##”);
double value = fmt.format(“23.457”);
System.out.print(value);
After writing this, i get a compile time error. Why is that?
Type: Posts; User: Elio.alsayah
DecimalFormat fmt = new DecimalFormat(“0.##”);
double value = fmt.format(“23.457”);
System.out.print(value);
After writing this, i get a compile time error. Why is that?