2 Replies - 761 Views - Last Post: 26 June 2014 - 03:23 AM Rate Topic: -----

#1 jamesmercer   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 26-June 14

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

Posted 26 June 2014 - 12:08 AM

Hi My name is James iam a java fresher please let me know How to create a unmodifiable/read-only list in Java?
Is This A Good Question/Topic? 0
  • +

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

#2 astonecipher   User is offline

  • Enterprise Software Architect
  • member icon

Reputation: 3131
  • View blog
  • Posts: 11,931
  • Joined: 03-December 12

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

Posted 26 June 2014 - 12:54 AM

Create a list type with no methods.
Was This Post Helpful? 0
  • +
  • -

#3 g00se   User is online

  • D.I.C Lover
  • member icon

Reputation: 3683
  • View blog
  • Posts: 16,909
  • Joined: 20-September 08

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

Posted 26 June 2014 - 03:23 AM

http://docs.oracle.c...java.util.List-
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1