java - Can't use decimals in scanner input - Stack Overflow

PHOTO EMBED

Thu Jan 12 2023 11:06:18 GMT+0000 (Coordinated Universal Time)

Saved by @justin02 #java

Scanner sc = new Scanner(ystem.in);    
sc.useLocale(Locale.ENGLISH);
content_copyCOPY

https://stackoverflow.com/questions/41040246/cant-use-decimals-in-scanner-input