src/main/java/pityoulish/tutorial/TutorialCommandHandler.java
protected int handleLocalCmd()
    throws Exception
   {
     for (NetworkInterface nwi :
            Collections.list(NetworkInterface.getNetworkInterfaces()))
      {
        System.out.println(Catalog.NW_IFCE_1.format(nwi.getName()));

        for (InetAddress ina : Collections.list(nwi.getInetAddresses()))
         {
           System.out.println(formatInetAddress(ina));
         }
      }

     return 0;
   }
/**
   * Prints the local IP addresses for all network interfaces.
   *
   * @return status code, 0 for success
   *
   * @throws Exception  in case of a problem
   */
Prints the local IP addresses for all network interfaces.
@return status code, 0 for success

@throws Exception  in case of a problem
Prints the local IP addresses for all network interfaces . @return status code 0 for success @throws Exception in case of a problem
protected int handleLocalCmd()
    throws Exception
   {
     for (NetworkInterface nwi :
            Collections.list(NetworkInterface.getNetworkInterfaces()))
      {
        System.out.println(Catalog.NW_IFCE_1.format(nwi.getName()));
        for (InetAddress ina : Collections.list(nwi.getInetAddresses()))
         {
           System.out.println(formatInetAddress(ina));
         }
      }
     return 0;
   }
protected int handleLocalCmd ( ) throws Exception { for ( NetworkInterface nwi : Collections . list ( NetworkInterface . getNetworkInterfaces ( ) ) ) { System . out . println ( Catalog . NW_IFCE_1 . format ( nwi . getName ( ) ) ) ; for ( InetAddress ina : Collections . list ( nwi . getInetAddresses ( ) ) ) { System . out . println ( formatInetAddress ( ina ) ) ; } } return 0 ; }
Prints the local IP addresses for all network interfaces.
Prints the local IP addresses for all network interfaces .