You have worked with only one dimensional arrays up to now, that is arrays that use a single index.
Suppose that you have a fanatical interest in the weather and you are intent on recording the tempertature at
10 separate geographical throughout the year once you have sorted out the logidtics of actually colleting this
information you can use an array of 10 elements corresponding to the number of locations where each of these elements in an array of 365 elements to store the temperature values you would declare this array with the statements.
float [] [] temperature = new float [10] [365];
hope this will be very useful for your programing knowledge
No comments:
Post a Comment