Processing Community Forum
What is the simplest way to set one array equal to another without linking them
Processing
Beginners
GoToLoop
December 22, 2018, 5:43pm
2
int[] a = { 10, 10 }; int[] b = a.clone();
3 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
How to copy an array
Beginners
10
2475
August 16, 2021
Differentiating Array definitions
Coding Questions
5
733
November 23, 2018
How to clone Object without modifying original?
Coding Questions
3
1187
March 13, 2021
Final array is being changed
Coding Questions
7
849
July 3, 2018
Hello, just interesting b is link to a?
Beginners
3
99
May 3, 2024