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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply 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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Array constructing
 
Similar Threads
Array Reference Assignments
Comparable again
how to set pos of a frame
is this two are euqal
parameters/arguments