package localizador;

import java.io.*;  
import java.net.InetAddress; 
/**
 *
 * @author luis
 */
public class localizador {
  
   InetAddress ia;
   
    
    public localizador() {
    }
    
    /**
     * @param args the command line arguments
     */
    public String ip(String lala){
            try {  
          ia = InetAddress.getByName(lala);           
            System.out.println("sucesso");
       } catch (Exception e) {  
            
            e.printStackTrace();  
       }  
                    return ia.getHostName();
        }
    
    public String host(String lala){
           try {  
          ia = InetAddress.getByName(lala);           
            System.out.println("sucesso");
       } catch (Exception e) {  
            
            e.printStackTrace();  
       }  
                    return ia.getHostAddress();
        }
    
    public String canonical(String lala){
             try {  
          ia = InetAddress.getByName(lala);           
          
       } catch (Exception e) {  
            
            e.printStackTrace();  
       }  
                    return ia.getCanonicalHostName();
        }
     
}

@@ -270,36 +270,35 @@
 tring ip(String 
-lala
+sip
 )%7B%0A            t
@@ -333,36 +333,35 @@
 dress.getByName(
-lala
+sip
 );           %0A  
@@ -575,36 +575,37 @@
 ing host(String 
-lala
+shost
 )%7B%0A           tr
@@ -639,36 +639,37 @@
 dress.getByName(
-lala
+shost
 );           %0A  
@@ -899,20 +899,22 @@
 (String 
-lala
+scanon
 )%7B%0A     
@@ -970,12 +970,14 @@
 ame(
-lala
+scanon
 );  

Update localizador.java