Re: Two dimensional calendar array

From: Phil Hanna (pehanna_at_yahoo.com)
Date: 03/03/04


Date: Wed, 03 Mar 2004 04:38:19 GMT

On Sat, 28 Feb 2004 18:35:53 +0100, "Juggernaut"
<juggernaut8181@hotmail.com> wrote:

>But do these arrays actually be filled with any info? Isnt it just the loop
>posting numbers?
>
>You see I want to fill these day arrays with values, random values (since I
>later have to do some calculations with them).
>
>So I want the array, with 365 "cells" of random values, to be calculated
>with later.
>

You may not need an array. How about a Map, where the key is a Date
object? You can use java.util.Calendar to give you the next day given
a particular date.

--
Phil Hanna
Author of JSP 2.0: The Complete Reference
http://www.philhanna.com


Relevant Pages

  • Re: Iterating a Foreach loop for dummies...
    ... I have rearranged the posting accordingly. ... >> I am running into an issue regarding three Foreach loops- one running ... Then the second of all three arrays are printed. ... "Reply" at the bottom of the article headers. ...
    (comp.lang.perl.misc)
  • Re: Combining three arrays of hashes into one?
    ... Is there a way of copying three arrays of hashes into one array for ... ever bullshit question/without example you are posting! ...
    (comp.lang.perl.misc)
  • Re: Useless use of array element in void context
    ... correction to my previous posting: ... It is completely ignoring indices two through five. ... The arrays at index 3 are not equal, ...
    (comp.lang.perl.misc)
  • Re: Two dimensional calendar array
    ... posting numbers? ... You see I want to fill these day arrays with values, ... later have to do some calculations with them). ... >> that didnt work, ...
    (comp.lang.java.programmer)
  • Re: The finally debate
    ... red floyd wrote: ... >> void bar() ... I realized that after posting. ... equivalent for arrays, ...
    (comp.lang.cpp)