className is error

Bring fileName into correspondence with className which is marked as public
This commit is contained in:
JayH2018
2018-08-27 15:54:52 +08:00
committed by GitHub
parent a1cbd6542f
commit 890b9df9e5

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);
} }