removed some unnecessary lines of code master
authorHansjürg Wenger <wgh1@bfh.ch>
Tue, 9 May 2017 13:32:20 +0000 (15:32 +0200)
committerHansjürg Wenger <wgh1@bfh.ch>
Tue, 9 May 2017 13:32:20 +0000 (15:32 +0200)
DNSqueries.java

index f553e94..b4903d1 100644 (file)
@@ -23,8 +23,6 @@ public class DNSqueries {
     java.security.Security.setProperty("networkaddress.cache.ttl" , "0");
     java.security.Security.setProperty("networkaddress.cache.negative.ttl" , "0");
 
-    // iteration variable
-    int i;
     // input scanner
     Scanner s;
     // internet address
@@ -65,7 +63,7 @@ public class DNSqueries {
         System.out.println("\nCanonical Hostname: " + canHostName + "\n");
 
         // from the list of IP addresses print out ..
-        for (i=0;i<iList.length;i++) {
+        for (int i=0;i<iList.length;i++) {
           //                 .. FQDN ..
           System.out.println("Hostname " + i + ": " + iList[i].getCanonicalHostName() +
           //                 .. and IP address