Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class Test {
- public static void main(String[] args) throws Exception {
- Set<Integer> setB = new HashSet<>();
- Set<Number> setA = (Set<Number>) setB;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement