Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    /**
     * replace point with comma in double values
     *
     * @param double value - ouble value with point as decimal point
     * @return String - string representation of the double value with comma instead of point
     */
    public static String pointToComma(double value) {
        return Double.toString(value).replace(".", ",");
    }
}