import java.io.*; import java.text.*; class Tipusv { public static void main(String args[]) throws IOException { System.out.println("Hi"); InputStreamReader befolyam = new InputStreamReader(System.in); BufferedReader be = new BufferedReader(befolyam); String s = be.readLine(); NumberFormat df = NumberFormat.getInstance(); Number a = 0; try { a = df.parse(s); System.out.println("Szám: " + a.doubleValue()); } catch(Exception e) { System.out.println("Nem megfelelő formátum" ); } System.in.read(); } }