first download the code using this link -
https://github.com/Rohit-kumar-raja/graphical-terminal.git
go to downloaded folder using CD command
open terminal - type javac Graphical-terminal.java
after type - sudo java Graphical-terminal
open cmd - type javac Graphical-terminal.java
after type - java Graphical-terminal