why are we using scanner s=new scanner(system.in) above this.root=…??
hey @Lalit-Singh-3324032877653020 just passing Scanner for input, elaborate your doubt in detail