import java.util.Scanner; Scanner in = new Scanner(System.in); System.out.print("Wert angeben: "); double d = in.nextDouble();