I have updated in http://www.freejavaclass.com/
InetAddress inet = null;
try
{
inet = InetAddress.getByName("mail.google.com");
System.out.println ("IP : " + inet.getHostAddress());
if(inet.isReachable(1000))
{
System.out.println("Server is up");
}
else
{
System.out.println("Server is down");
}
}
Subscribe to:
Posts (Atom)
How can instantiate Java interface without implementing.
public interface Foo { String method(); } public class Claaa { public static void main(String[] args) { Foo fooByIC...
-
I have updated in http://www.freejavaclass.com/ public, protected, default, private
-
http://freejavaclass.com/articles/articleshome.jsp?tutorialpath=java
-
1) Download minikube-installer.exe. 2) Download kubectl.exe. 3) Install minikube in C:\Minikube and copy kubectl.exe in same location. 4)...