rendered paste bodyimport java.net.Socket;import java.net.SocketAddress;import java.net.InetAddress;import java.io.*;public class hello { public static void main (String[] argv) { int compteur = 0; String host = "google.fr"; InetAddress ourselves; //ourselves = InetAddress.getLocalHost(); //InetAddress.getByName(host); //InetAddress.getByName(host.toUpperCase()); InetAddress.getLocalHost(); Socket smtpPipe; //smtpPipe = new Socket(ourselves, 80); // les flux de lecture/écriture BufferedReader in; OutputStreamWriter out; //smtpPipe = new Socket(, 80); //smtpPipe = new Socket('yahoo.fr', 80); System.out.print(host.toUpperCase()+'\n'); System.out.print("FIN"); }}