ArrayList

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abhii
    New Member
    • Feb 2008
    • 30

    ArrayList

    helloo everyone,
    can anyone please tell me how i can add numbers in arraylist without using .add() inbuilt method....
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by abhii
    helloo everyone,
    can anyone please tell me how i can add numbers in arraylist without using .add() inbuilt method....
    Why don't you want to use the add method?
    Is the AddRange method allowed then? Are you allowed to use the constructor that takes a collection as argument?

    Comment

    • abhii
      New Member
      • Feb 2008
      • 30

      #3
      Originally posted by r035198x
      Why don't you want to use the add method?
      Is the AddRange method allowed then? Are you allowed to use the constructor that takes a collection as argument?
      actually my intention is to add the value at any index so i am not getting how to do it....

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by abhii
        actually my intention is to add the value at any index so i am not getting how to do it....
        Are you talking about
        [CODE=cpp]list[index] = value;[/CODE]

        Comment

        • abhii
          New Member
          • Feb 2008
          • 30

          #5
          Originally posted by r035198x
          Are you talking about
          [CODE=cpp]list[index] = value;[/CODE]
          No i'm talking about c#

          Comment

          • r035198x
            MVP
            • Sep 2006
            • 13225

            #6
            Originally posted by abhii
            No i'm talking about c#
            The code I posted IS C#.

            Comment

            Working...