cant compilethe code as get NitrogenSIM.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.

I have two text files I read from and store in a arraylist.

I then read through this arraylist. These arraylist are two dimensional and then perform calculationsand create a new file or display this new string on screen.

I am kind of confused how to access these two dimensional array. I tried to compile the program and get a comiplation erroe. Could someone please help me. What am I doing wrong.

Rohan
NitrogenSIM.java
elevation.txt
SMadhaviAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

krakatoaCommented:
Telling us what the Error* actually is would be quite helpful, although as you now know from your other question, this is not an Error but a Warning.

*The 'error' being at compile time.
0
CEHJCommented:
I very much doubt the error you report is nothing to do with the code you attached

http://technojeeves.com/index.php/aliasjava1/17-errors
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
krakatoaCommented:
A cursory shuftee at your code suggests to me that you would need to drill into the nested ArrayList to obtain what you need from the List. Such as perhaps on the lines of

for( int  month = 1; month <= 1; month++)
            {
                int rainint = (eMap.get( month-1).get(month-1)).intValue(); // my new var, obtaining the Integer as an int
                Double rainDouble = (Double)Integer.valueOf(rainint).doubleValue(); // make a discrete Double from that int
                rain = randomizeRain( rainDouble); // now run your method

Open in new window


But I could be wrong.

* eMap.get( month-1).get(month-1)   - obviously this second index would need to receive iterations depending on its count of elements.
0
CEHJCommented:
I very much doubt the error you report is nothing to do with the code you attached
should have been
I very much doubt the error you report is anything to do with the code you attached (at least in its present form)
0
SMadhaviAuthor Commented:
I will break this down in another question and I think the problem is thAat The eMap listarray is not getting populated from the tab limited text file.
Will post it as another question
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.