• Post Reply Bookmark Topic Watch Topic
  • New Topic

passing Array between methods  RSS feed

 
Heba Mahmoud
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


the output is
0 2
7 7


how the array passed to the method is changed , we only pass a copy from the array ?? not the array itself.
as what happen in the int x ??pass on the copy of x and x remains the same in the main method.
 
Heba Mahmoud
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks

the description is so clear :)
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!