This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes array objects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "array objects" Watch "array objects" New topic
Author

array objects

brendan holliday
Greenhorn

Joined: Jul 31, 2012
Posts: 4
int [ ] [ ] scores = { {5,2,4,7}, {9,2}, {3,4} };

They say there are four objects in that line but i can only see three
so where is the fourth one?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61314
    
  66

Hint: try counting the sets of braces.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ivan Jozsef Balazs
Rancher

Joined: May 22, 2012
Posts: 867
    
    5
> but i can only see three

Of what type are those three?

Is there maybe an object of another type lurking around?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39084
    
  23
Yes.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: array objects