logo

Crowdly

Browser

Add to Chrome

¿Hay errores de compilación o ejecución en el siguiente código? import java.u...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

¿Hay errores de compilación o ejecución en el siguiente código?

import java.util.*;

class Punto<T> {

    private T x, y;

   

    public Punto (T x, T y) {

        this.x = x;

        this.y = y;

    }

   

    public static void main(String[] args) {

        Set<Punto<Integer>> lp = new TreeSet<> (

                Arrays.asList(new Punto<Integer>(3, 3),

                              new Punto<Integer>(0, 0)));

    }

}

0%
0%
More questions like this

Want instant access to all verified answers on moodle.uam.es?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome