Ich habe einen Code, was mir Outputs in der Konsole liefert. Ich will es aber grafisch dargestellt haben. Wie mache ich es vom Prinzip her?
Code (Text):
public class TuermeVonHanoi {
static void ziehe_scheibe(int nummer, String von, String nach) {
System.out.println("Scheibe " + nummer + " wird von " + von +
" nach " + nach + " verschoben ");
}
static void hanoi(int N, String platz1, String hilfsplatz, String platz2)
{
if (N == 1) {
ziehe_scheibe(N, platz1,...
static void ziehe_scheibe(int nummer, String von, String nach) {
System.out.println("Scheibe " + nummer + " wird von " + von +
" nach " + nach + " verschoben ");
}
static void hanoi(int N, String platz1, String hilfsplatz, String platz2)
{
if (N == 1) {
ziehe_scheibe(N, platz1,...
Wie erstelle ich eine JavaFX Anwendung von diesem Code?
0 commentaires:
Enregistrer un commentaire