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

View File

@ -2,7 +2,7 @@ import java.util.ArrayList;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.Scanner; import java.util.Scanner;
public class treeclass { public class GenericTree {
private class Node { private class Node {
int data; int data;
ArrayList<Node> child = new ArrayList<>(); 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. 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); Scanner scn = new Scanner(System.in);
root = create_treeG(null, 0, scn); root = create_treeG(null, 0, scn);
} }