mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-07 17:56:02 +08:00
className is error
Bring fileName into correspondence with className which is marked as public
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user