How to create a unmodifiable/read-only list in Java?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: How to create a unmodifiable/read-only list in Java?

  1. #1
    Join Date
    Jun 2014
    Posts
    4

    How to create a unmodifiable/read-only list in Java?

    Hi My name is James iam a java fresher please let me know How to create a unmodifiable/read-only list
    in Java?

  2. #2
    ovidiucucu's Avatar
    ovidiucucu is offline Moderator/Reviewer Power Poster
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,021

    Re: How to create a unmodifiable/read-only list in Java?

    [ Redirected thread ]
    Ovidiu Cucu
    "When in Rome, do as Romans do."
    Visit: Microsoft Virtual Academy
    Follow: https://twitter.com/#!/ovidiucucu
    My blog: http://codexpert.ro/blog/author/ovidiu-cucu/

  3. #3
    Join Date
    Jul 2013
    Posts
    272

    Re: How to create a unmodifiable/read-only list in Java?

    Quote Originally Posted by jamesmercer View Post
    Hi My name is James iam a java fresher please let me know How to create a unmodifiable/read-only list
    in Java?
    Check out a class called Collections in the Java standard library. Among other stuff it provides wrapper classes that turn ordinary collections into readonly collections. See the unmodifiableList method.

  4. #4
    Join Date
    Jul 2005
    Location
    Currently in Mexico City
    Posts
    566

    Re: How to create a unmodifiable/read-only list in Java?

    Wanna install linux on a vacuum cleaner. Could anyone tell me which distro sucks better?

    I had a nightmare last night. I was dreaming that Iím 64-bit and my blanket is 32-bit and I couldnít cover myself with it, so Iíve spent the whole night freezing. And in the morning I find that my blanket just had fallen off the bed. =S (from: bash.org.ru)

    //always looking for job opportunities in AU/NZ/US/CA/Europe :P
    willCodeForFood(Arrays.asList("Java","PHP","C++","bash","Assembler","XML","XHTML","CSS","JS","PL/SQL"));

    USE [code] TAGS! Read this FAQ if you are new here. If this post was helpful, please rate it!

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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center