/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.text.NumberFormat;
import java.text.ParseException;
import java.util.Locale;
class Ideone
{
{
}
//obtem um NumberFormat para o Locale default (BR)
//converte um número com vírgulas ex: 2,56 para double
double number = nf.parse(arg).doubleValue();
return number;
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLm1hdGguQmlnRGVjaW1hbDsKaW1wb3J0IGphdmEubWF0aC5Sb3VuZGluZ01vZGU7CmltcG9ydCBqYXZhLnRleHQuTnVtYmVyRm9ybWF0OwppbXBvcnQgamF2YS50ZXh0LlBhcnNlRXhjZXB0aW9uOwppbXBvcnQgamF2YS51dGlsLkxvY2FsZTsKCmNsYXNzIElkZW9uZQp7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24KCXsKCQlTdHJpbmcgbnVtZXJvID0gIjE5OSw5OSI7CgkJQmlnRGVjaW1hbCBiZyA9IG5ldyBCaWdEZWNpbWFsKGNvbnZlcnRlKG51bWVybykpLnNldFNjYWxlKDIsIFJvdW5kaW5nTW9kZS5IQUxGX0VWRU4pOwoJCVN5c3RlbS5vdXQucHJpbnRsbihiZyk7Cgl9CgkKCXB1YmxpYyBzdGF0aWMgZG91YmxlIGNvbnZlcnRlKFN0cmluZyBhcmcpIHRocm93cyBQYXJzZUV4Y2VwdGlvbnsKCQkvL29idGVtIHVtIE51bWJlckZvcm1hdCBwYXJhIG8gTG9jYWxlIGRlZmF1bHQgKEJSKQoJCU51bWJlckZvcm1hdCBuZiA9IE51bWJlckZvcm1hdC5nZXROdW1iZXJJbnN0YW5jZShu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