Results 1 to 5 of 5
  1. #1
    Kajamaz is offline Member
    Join Date
    Apr 2013
    Posts
    2
    Rep Power
    0

    Unhappy Need some Array Help

    Here is the question from my book, its quite simple, but i dont understand how to answer it... Can you answer this one?

    Write code that will instantiate an ArrayList object called alst and have the restriction that
    only String objects can be stored in it.

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    7

    Default Re: Need some Array Help

    Quote Originally Posted by Kajamaz View Post
    its quite simple, but i dont understand how to answer it...
    You said so yourself..."its quite simple"...so, What have you tried?

  3. #3
    Kajamaz is offline Member
    Join Date
    Apr 2013
    Posts
    2
    Rep Power
    0

    Default Re: Need some Array Help

    Yes... i dont get it :/

  4. #4
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    7

    Default Re: Need some Array Help

    Quote Originally Posted by Kajamaz View Post
    Yes... i dont get it :/
    Please understand these forums are here to help you problem solve, not to hand out answers. But first, you need to define the problem for us...what don't you get?

  5. #5
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    3,618
    Rep Power
    5

    Default Re: Need some Array Help

    Check out the Tutorial link in my signature. Specifically, the section on Collections. Also check out the ArrayList API in the JDK documentation.

    Regards,
    Jim
    The Java™ Tutorial | SSCCE | Java Naming Conventions
    Poor planning our your part does not constitute an emergency on my part.

Similar Threads

  1. Replies: 3
    Last Post: 12-28-2013, 09:39 PM
  2. Replies: 15
    Last Post: 05-14-2012, 12:42 PM
  3. Replies: 0
    Last Post: 05-12-2011, 07:04 PM
  4. Replies: 23
    Last Post: 09-07-2010, 08:12 PM
  5. Replies: 2
    Last Post: 09-06-2010, 01:03 AM

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
  •