I want to create small java program for ping to Default Gateway. My application should catch my Default gateway automatically or manually, when i click on button named ping, it should start to show me result in command prompt like 'reply from xxx.xxx.xxx.xxx: byte = 32 time = xx ms TTL=255' continuously.
Always i write in Run as this 'ping xxx.xxx.xxx.xxx -t' & the result showing me that manner. But i bore by this.
How should i do this? Small hint only. So i can start coding.
Millions saw the apple fall, but Newton asked why.