The Wayback Machine - https://web.archive.org/web/20201103192556/https://github.com/TheAlgorithms/Java/issues/1704
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defined wrong class object name in Java/Misc/HeapSort.java file #1704

Open
eunbeek opened this issue Oct 9, 2020 · 0 comments
Open

Defined wrong class object name in Java/Misc/HeapSort.java file #1704

eunbeek opened this issue Oct 9, 2020 · 0 comments

Comments

@eunbeek
Copy link

@eunbeek eunbeek commented Oct 9, 2020

When I run this repository, I figure out this small bug.

Can I add a small change like below?

public class HeapSort {
// Driver program
public static void main(String args[]) {
int arr[] = {12, 11, 13, 5, 6, 7};

    **heap_sort ob = new heap_sort();**
    ob.sort(arr);

    System.out.println("Sorted array is");
    printArray(arr);
}

}

@eunbeek eunbeek changed the title Defining wrong class object name in Java/Misc/HeapSort.java file Defined wrong class object name in Java/Misc/HeapSort.java file Oct 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.