mysql router not in list when installed code example
Example 1: how to check if django is installed in ubuntu
$ django-admin.py version
Example 2: how to check internet is working or not in java
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
public class Tester {
public static void main(String[] args) {
try {
URL url = new URL("http://www.google.com");
URLConnection connection = url.openConnection();
connection.connect();
System.out.println("Internet is connected");
} catch (MalformedURLException e) {
System.out.println("Internet is not connected");
} catch (IOException e) {
System.out.println("Internet is not connected");
}
}
}