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
2473
August 16, 2021
Hello, just interesting b is link to a?
Beginners
3
95
May 3, 2024
Function changes an array it shouldn't interact with at all
Beginners
9
153
May 16, 2023
Differentiating Array definitions
Coding Questions
5
727
November 23, 2018
How to clone Object without modifying original?
Coding Questions
3
1177
March 13, 2021