aspose file tools
The moose likes Beginning Java and the fly likes Why does- int maximum = UKX[0][1];   not work? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Why does- int maximum = UKX[0][1];   not work? " Watch "Why does- int maximum = UKX[0][1];   not work? " New topic
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
    
  13

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
    
  19

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
    
    4
And welcome to the Ranch
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: Why does- int maximum = UKX[0][1]; not work?
 
Similar Threads
Help coding
Sierra Bates SCJP 6 Ch. 3 No. 3
Exception in thread "main" java.lang.NoClassDefFoundError: kolos/Main
Largest/Greatest of n numbers
More Array sorting trouble