• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
java question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

java question


  • Subject: java question
  • From: Theodore Petrosky <email@hidden>
  • Date: Mon, 14 Jan 2013 06:29:13 -0800 (PST)

I notice in ERDEditDatePopupCommon.java:

public NSArray dayList() {
   if (dayList == null) {
       dayList = new NSMutableArray(new Object[] {
           "01","02","03","04","05","06","07","08","09","10",
           "11","12","13","14","15","16","17","18","19","20",
           "21","22","23","24","25","26","27","28","29","30","31"
       });
    }
   return dayList;
}

the array is set up as an array of Objects not Strings. Is there any advantage to using Object as the type. I mean, String inherits from Object, so why?

Ted
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: java question
      • From: Johann Werner <email@hidden>
  • Prev by Date: Re: Hello World Project - Installation Development
  • Next by Date: Re: Hello World Project - Installation Development
  • Previous by thread: Re: Hello World Project - Installation Development
  • Next by thread: Re: java question
  • Index(es):
    • Date
    • Thread