Results 1 to 4 of 4
  1. #1
    dqlevitt is offline Member
    Join Date
    May 2010
    Posts
    1
    Rep Power
    0

    Default use of <> brackets

    I am not new to java but have not done much coding in about a year. I am now seeing <> brackets used in a way that is unfamiliar. For example:
    public class WebdavTreeModelControllerImpl extends
    DefaultWebdavTreeModelController<FileStoreInstance , ModifiableFileStoreInstance>

    and

    public WebdavTreeModelControllerImpl(final URI uri, final Map<String, String[]> params, final Context context) {

    Can someone please explain that use?

    Thanks.

    - Dave

  2. #2
    StormyWaters is offline Senior Member
    Join Date
    Feb 2009
    Posts
    305
    Rep Power
    6

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,447
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by StormyWaters View Post
    This is also a nice read.

    kind regards,

    Jos

  4. #4
    Aseem is offline Senior Member
    Join Date
    Mar 2009
    Location
    USA
    Posts
    127
    Rep Power
    0

    Default

    ArrayList<String> alist = new ArratList<String>();
    means that arraylist with name alist can have only String values.
    alist.add(1)--> not allowed

    Yeah, read Generics --java 1.5 on-->

Similar Threads

  1. Arrowhead brackets
    By dushmantha.e in forum New To Java
    Replies: 5
    Last Post: 02-14-2010, 09:08 AM
  2. Bracket help - can't find the missing brackets.
    By Z E P H Y R in forum New To Java
    Replies: 0
    Last Post: 03-17-2009, 10:26 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •