Create Newterminal.java

All methods are grouped here