['directions', 'feasts', 'fashion advice', 'baking', 'freedom']
Com puc crear un programa en Java que em permeti saber la direcció IP pública del meu ordinador?
```java
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;

public class ObtenirIPPublica {

  public static void main(String[] args) {
    try {
      URL url = new URL("http://checkip.amazonaws.com");
      BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
      String ip = in.readLine();
      System.out.println("La teva adreça IP pública és: " + ip);
      in.close();
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
}
```