# | Line 36 | Line 36 | import java.util.*; | |
---|---|---|
36 | */ | |
37 | public class IllegalConstructorArgs { | |
38 | ||
39 | < | public static void main(String argv[]) { |
40 | < | int testSucceeded=0; |
39 | > | public static void main(String argv[]) { |
40 | > | int testSucceeded=0; |
41 | ||
42 | try { | |
43 | < | // this should generate an IllegalArgumentException |
44 | < | Vector bad1 = new Vector(-100, 10); |
43 | > | // this should generate an IllegalArgumentException |
44 | > | Vector bad1 = new Vector(-100, 10); |
45 | } | |
46 | catch (IllegalArgumentException e1) { | |
47 | testSucceeded =1; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |