• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why does- int maximum = UKX[0][1]; not work?  RSS feed

 
Philip Tolhurst
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you try compiling it outside of the IDE?
 
Henry Wong
author
Sheriff
Posts: 23283
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And can you show us the code for the whole class?

Henry
 
Philip Tolhurst
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Posts: 55772
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And welcome to the Ranch
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!