title: Java floating point number in comma instead of dot
body: <p>All I have a floating point number in Finnish local. It is like the following:-</p>
  
  <pre><code>  String numberString = "1000,30";
    if(numberString.contains(",")){
          numberString = numberString.replaceAll(",",".").trim();    
      }
  
      try {
          Number number = Double.parseDouble(numberString);
          return number;
      }catch (NumberFormatException ex){
          System.out.printf(ex.getMessage());
      }
      return null;
  </code></pre>
  
  <p>But this number has value 1000.30. I would like the number should I have value 1000,30. How can I have Number with the comma instead of the dot?
  This is a basic question it must have been asked earlier. But all I find is in String data type. I don't see any Number data type. </p>