Merge pull request #491 from JayH2018/patch-1

className is error
This commit is contained in:
Varun Upadhyay 2018-08-27 07:10:14 -07:00 committed by GitHub
commit ff9205649b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@ import java.util.ArrayList;
import java.util.LinkedList;
import java.util.Scanner;
public class treeclass {
public class GenericTree {
private class Node {
int data;
ArrayList<Node> child = new ArrayList<>();
@ -22,7 +22,7 @@ public class treeclass {
I have done this, while calling from main one have to give minimum parameters.
*/
public treeclass() { //Constructor
public GenericTree() { //Constructor
Scanner scn = new Scanner(System.in);
root = create_treeG(null, 0, scn);
}