From 3cff34cafffee18825ca818c518b68ef39e7da8d Mon Sep 17 00:00:00 2001 From: Orange Date: Wed, 23 Nov 2016 13:03:43 +0100 Subject: [PATCH] ch from nextInt to nextDouble --- src/Concessionaria/Auto.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Concessionaria/Auto.java b/src/Concessionaria/Auto.java index ba8488a..e30a82d 100644 --- a/src/Concessionaria/Auto.java +++ b/src/Concessionaria/Auto.java @@ -55,7 +55,7 @@ public class Auto{ if(!sc.hasNext()) return null; cilindrata=sc.next(); if(!sc.hasNextDouble()) return null; - prezzo=sc.nextInt(); + prezzo=sc.nextDouble(); return new Auto(costruttore, modello, colore, cilindrata, prezzo); }