JavaRanch » Java Forums »
Java »
Beginning Java
| Author |
Why does- int maximum = UKX[0][1]; not work?
|
Philip Tolhurst
Greenhorn
Joined: Mar 06, 2011
Posts: 2
|
|
Hello
I'm new here but it seemed like a good place to ask my question.
I have an array of arrays (or multidimensional array as I would call it).
I want to find the highest value of all the elements at location 1 and the lowest of all the elements at location 2.
So I wrote the following:
I'm honestly at a loss and have spent an hour searching the web for an answer which I am sure is probably stupidly simple.
For the record Eclips is telling me: Syntax error on token ';'
Thanks in advance for any help you can give me.
Cheers
Phil
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56150
|
|
|
Did you try compiling it outside of the IDE?
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Henry Wong
author
Sheriff
Joined: Sep 28, 2004
Posts: 16680
|
|
And can you show us the code for the whole class?
Henry
|
Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
|
 |
Philip Tolhurst
Greenhorn
Joined: Mar 06, 2011
Posts: 2
|
|
Actually I've just tried running it as a stand alone Java application and it works fine.
Just as I expected it would.
So it's an Android issue.......
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32599
|
|
And welcome to the Ranch
|
 |
 |
|
|
subject: Why does- int maximum = UKX[0][1]; not work?
|
|
|
|