logo

Crowdly

Mis ilmub ekraanile? public class Kast< T > { private T t ; ...

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

Mis ilmub ekraanile?

public class Kast<T> {

private T t;

public void add(T t) {

this.t = t;

}

public T get() {

return t;

}

public static void main(String[] args) {

Kast<Integer> integerKast = new Kast<Integer>();

integerKast.add("10");

Integer mingiInteger = integerKast.get();

System.out.println(mingiInteger);

}

}
0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.ut.ee?

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