| 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 ;)
|
 |
 |
|
|
subject: Array constructing
|
|
|