• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can we change values in Arrays?  RSS feed

 
aman thind
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we change Array values once we've initialized an array?
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16028
87
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. You can write a small test program to find the answer to your question yourself.
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can change them.

What's more, Java does not have such thing as an unchangeable array. I've occasionally thought that's a pity, but one of the prices paid for keeping Java relatively small and simple.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!