-
Bug
-
Resolution: Fixed
-
P4
-
7
-
b01
-
generic
-
generic
-
Verified
There is a sample program (Deal) underlying a link in the Collections>List Interfaces tutorial found at this link: http://download.oracle.com/javase/tutorial/collections/interfaces/list.html
that is not the same as the code in the lesson. The link for the sample program on the page is this:
http://download.oracle.com/javase/tutorial/collections/interfaces/examples/Deal.java
List<Card> deck = Deck.newDeck(); // under the link
instead of
List<String> deck = new ArrayList<String>(); // on the page
The program will of course not compile if the Card object is referenced. However, it works fine with the listing on the page.
that is not the same as the code in the lesson. The link for the sample program on the page is this:
http://download.oracle.com/javase/tutorial/collections/interfaces/examples/Deal.java
List<Card> deck = Deck.newDeck(); // under the link
instead of
List<String> deck = new ArrayList<String>(); // on the page
The program will of course not compile if the Card object is referenced. However, it works fine with the listing on the page.