Changeset 399 in Java_Quellcode_SOOP_Vorlesung for rekursion/Rekursion.java


Ignore:
Timestamp:
Dec 12, 2017, 9:50:46 AM (7 years ago)
Author:
tr
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • rekursion/Rekursion.java

    r397 r399  
    1717     * @param ziel Name des Zielplatzes
    1818     */
    19     public static void tuermeVonHanoi(int n, char start, char lager, char ziel) {
     19    public static void tuermeVonHanoi(int n, String start, String lager, String ziel) {
    2020        // Abbruchbedingung: Wenn keine Scheibe verlegt werden soll -> mach nichts
    2121        if (n > 0) {
     
    139139    public static void main(String[] args) {
    140140
    141         tuermeVonHanoi(4, 'A', 'B', 'C');
    142        
     141        tuermeVonHanoi(6, "A", "B", "C");
     142/*     
    143143        int[] a = {-9, 2, 7, -4, 9, 0, 0, 6, 3, 5, 2, 7, -6, 9};
    144144       
Note: See TracChangeset for help on using the changeset viewer.