Android/Java Getting Exception : java.util.MissingFormatArgumentException: Format specifier: w
<p><br>I Am newbie to MissingFormatArgumentException..Can anyone help me when will it me thrown..
<br>i am getting Exception as in below code </p>

<pre><code>    public String getIpAddress() {
    try {
        for (Enumeration&lt;NetworkInterface&gt; en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements();) {
            NetworkInterface intf = en.nextElement();
            for (Enumeration&lt;InetAddress&gt; enumIpAddr = intf.getInetAddresses(); enumIpAddr.hasMoreElements();) {
                InetAddress inetAddress = enumIpAddr.nextElement();
                if (!inetAddress.isLoopbackAddress()) {
                    **return inetAddress.getHostAddress();**//Exception
                }
            }
        }
    } catch (SocketException ex) {
        Logger.e(TAG, ex.toString());
    }
    return null;
}
</code></pre>

<p>Thanks
Nithin</p>
