this is the simple java code, which is taught by talent++ gurgoan