java.io.*;
Hier ist das Programm mit etwas zusätzlich getaner Arbeit, am Aspekt der "Eingabeaufforderung und Schleife":
import java.io.*; class PolyBerechnen { public static void main (String[] args ) throws IOException { BufferedReader userIn = ___________________________; double x; // ein Wert für das Polynom String antwort = "j"; // "j" oder "n" while ( antwort.equals( "j" ) ) { // Einen Wert für x holen // Polynom berechnen // Ergebnis ausgeben // Anwender fragen ob das Programm fortfahren soll // Die Antwort des Anwenders ist "antwort" ___________________________; antwort = userIn.___________________________; } } }