• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Array constructing

 
Konrad Till
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Konrad Till wrote:


same as


just print the it2 and see ( System.out.println(Arrays.toString(it2)); ) .
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch Konrad Till
 
Konrad Till
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ohh, so this is all about getting int from array ;) Thank you!
Silly mistake ;)
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes it's about getting int array from array .

you are welcome
 
Konrad Till
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes yes, another silly mistake ;)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic