Menu

use of Generics

2007-09-04
2013-04-09
  • Rick Iannitelli

    Rick Iannitelli - 2007-09-04

    I had problems getting the Scrapbook to recognize the "Arraylist<String>" syntax until i changed the compiler compliance level to version 5, which took me a while to figure out.

    Did i miss that in the setup of Eclipse WB? I am using v3.3.

    Otherwise, this stuff is great. I'm finally starting to understand the relationship of the classes and the confusing syntax of invoking methods in Java (at least to me an old COBOL programmer). "returnValue = ml.book().addBooks();"

    Or maybe its just that i've read it so many times. Either way, thanks for finally clearing up my procedural cobwebs.

    thank you very much.
    Rick 

     
    • Mark Dexter

      Mark Dexter - 2007-09-04

      I didn't specifically state it in the tutorial, but for generics you do need the 1.5 or 1.6 version of the JRE. Eclipse recommends 1.5. I used the latest / greatest from Sun, which was 1.6. I'm glad you found the tutorial helpful. Thanks for the feedback. Mark Dexter

       

Log in to post a comment.