Determines whether this computer is on a network.
public static final boolean getNetwork()
Returns true if a network is present; otherwise, returns false.
Use the getNetwork method to determine whether a network is available before performing network-oriented operations.