File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Array constructing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Array constructing" Watch "Array constructing" New topic
Author

Array constructing

Konrad Till
Greenhorn

Joined: Nov 20, 2012
Posts: 7
Hello everyone! (my first post here).

Can you explain me why is this statement correct?:

And how should I read it? I'm quite confused about that one.
Firstly I thought, it will generate the compiler error because of incorrect dimensions, but unfortunately it didn't.
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Konrad Till wrote:


same as


just print the it2 and see ( System.out.println(Arrays.toString(it2)); ) .
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Welcome to JavaRanch Konrad Till
Konrad Till
Greenhorn

Joined: Nov 20, 2012
Posts: 7
Ohh, so this is all about getting int from array ;) Thank you!
Silly mistake ;)
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

yes it's about getting int array from array .

you are welcome
Konrad Till
Greenhorn

Joined: Nov 20, 2012
Posts: 7
Yes yes, another silly mistake ;)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Array constructing
 
Similar Threads
is this two are euqal
Array Reference Assignments
how to set pos of a frame
Comparable again
parameters/arguments