title: Why did this hashmap stop working out of no where?
body: <p>I have used this HashMap for a few days now and no problems at all. Now I get an error about FloatingDecimal,parseDouble, ReadWrite, FileReadWrite, and Looping error.</p>
  
  <p>the last thing I did to the program was adding $%.2f.formant to my ducts.second element it ran a few times I left to eat and came back to this!</p>
  
  <p>I was able to narrow it down to when it pulls the data from the file and converts it to the hashmap setting. </p>
  
  <p>Data in the file example 111,shoes,59.00</p>
  
  <pre><code>  val fileName = "src/products.txt"
      var products = HashMap&lt;Int, Pair&lt;String, Double&gt;&gt;()
  
      var inputFD =File(fileName).forEachLine {
          var pieces = it.split(",")
          // println(pieces)
          products [pieces [0].toInt()] = Pair(pieces [1].trim(),pieces[2].toDouble())
      }
  </code></pre>