Results 1 to 2 of 2
  1. #1
    katturv is offline Member
    Join Date
    Oct 2010
    Posts
    18
    Rep Power
    0

    Default adding date in arraylist

    hi,
    is it possible to ad date as String in arraylist
    like

    ArrayList<String>arrayList = new ArrayList<String>();
    arrayList.add("11/11/2010");
    and iterate and print it

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

    Default

    Yup, that's possible.

    kind regards,

    Jos

    ps. and I won't show you how because that would be spoonfeeding.

Similar Threads

  1. Replies: 7
    Last Post: 09-26-2011, 11:29 PM
  2. adding days to a date
    By karen.tao in forum Java Applets
    Replies: 13
    Last Post: 09-13-2009, 09:05 PM
  3. Null Pointer Exception when adding items to ArrayList
    By ShadowCopy in forum New To Java
    Replies: 3
    Last Post: 08-27-2009, 09:23 AM
  4. Compare date input to database with current date
    By hungleon88 in forum Advanced Java
    Replies: 2
    Last Post: 11-25-2008, 08:10 AM
  5. Creating a Gregorian Calendar using a Date object gives date - 1
    By prachi_goliwadekar in forum New To Java
    Replies: 1
    Last Post: 05-08-2008, 08:32 PM

Posting Permissions

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