Skip to content

Instantly share code, notes, and snippets.

@sahinyanlik
sahinyanlik / PingIP.java
Created April 14, 2016 07:16 — forked from surajchhetry/PingIP.java
Java program to ping an IP address
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class PingIP {
public static void runSystemCommand(String command) {
try {
Process p = Runtime.getRuntime().exec(command);
BufferedReader inputStream = new BufferedReader(
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Example page</title>
</head>
<body>
<h1>Hello world</h1>
<p>Lorem ipsum dolor sit amet, consectetur.</p>