From 79e2eb2826c8819f80bb006f05edbe927cdd69bd Mon Sep 17 00:00:00 2001 From: Balance-Breaker Date: Tue, 3 Oct 2017 12:38:23 +0530 Subject: [PATCH] Removed unrequired Package --- ...fHanoiUsingRecursion => TowerOfHanoiUsingRecursion.java} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename Misc/{TowerOfHanoiUsingRecursion => TowerOfHanoiUsingRecursion.java} (95%) diff --git a/Misc/TowerOfHanoiUsingRecursion b/Misc/TowerOfHanoiUsingRecursion.java similarity index 95% rename from Misc/TowerOfHanoiUsingRecursion rename to Misc/TowerOfHanoiUsingRecursion.java index 60778fc9a..b5ee7ad71 100644 --- a/Misc/TowerOfHanoiUsingRecursion +++ b/Misc/TowerOfHanoiUsingRecursion.java @@ -1,8 +1,6 @@ -package com.manmeet; - import java.util.Scanner; -public class TowerOfHanoi +class TowerOfHanoi { public static void shift(int n, String startPole, String intermediatePole, String endPole) { @@ -10,6 +8,8 @@ public class TowerOfHanoi { return; } + + // Shift function is called in recursion for swapping the n-1 disc from the startPole to the intermediatePole shift(n - 1, startPole, endPole, intermediatePole); System.out.println("\nMove \"" + n + "\" from " + startPole + " --> " + endPole); // Result Printing