Re: 2D array
From: Roedy Green (look-on_at_mindprod.com.invalid)
Date: 05/12/04
- Next message: FISH: "Re: Running a java game (mobile phone game) on a PC?"
- Previous message: Manolis Wallace: "Re: What is the best implementation for graph networks (edges+nodes+weights) ??"
- In reply to: D. Beckham: "2D array"
- Next in thread: RC: "Re: 2D array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 12 May 2004 09:06:56 GMT
On Wed, 12 May 2004 06:27:33 GMT, "D. Beckham"
<lekhanh88@earthlink.net> wrote or quoted :
>Would someone shows me the java syntax to create a 2D array of a calendar,
>where the rows represents months, such as: Jan, Feb... and columns represent
>days; assuming that there are 29 days in Feb? I don't know whether to
>declare this 2D array in String or int, since the months are string while
>days are int. Thanks
I posted some code to create a calendar in HTML earlier today in
comp.lang gui in the thread
"need help with 2D array".
you could take that and combine it with the code in
http://mindprod.com/jgloss/gotchas.html#MATRIX
to creata a matrix of objects of days, including dummies on front and
end so that grid always starts with Sunday.
-- Canadian Mind Products, Roedy Green. Coaching, problem solving, economical contract programming. See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
- Next message: FISH: "Re: Running a java game (mobile phone game) on a PC?"
- Previous message: Manolis Wallace: "Re: What is the best implementation for graph networks (edges+nodes+weights) ??"
- In reply to: D. Beckham: "2D array"
- Next in thread: RC: "Re: 2D array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|