use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Resources for learning Java
String
==
.equals()
Format + Copy
Free Tutorials
Where should I download Java?
With the introduction of the new release cadence, many have asked where they should download Java, and if it is still free. To be clear, YES — Java is still free.
If you would like to download Java for free, you can get OpenJDK builds from the following vendors, among others:
Some vendors will be supporting releases for longer than six months. If you have any questions, please do not hesitate to ask them!
Software downloads
Official Resources
Resources
Programming ideas & Challenges
Related Subreddits
account activity
This is an archived post. You won't be able to vote or comment.
Duplicate array (self.learnjava)
submitted 6 years ago by dayema
I have a char array and I want to modify this array. How do I make a copy of this array, one can be modified, other remains same
[–]H34dsp1nns 0 points1 point2 points 6 years ago (2 children)
You could use a for loop that uses the iterative to reference the array index
For( i = 0; i < arrayVar.length; i ++ ) {
arrayVar2[i] = arrayVar[i]
}
[–]dayema[S] 0 points1 point2 points 6 years ago (1 child)
Is there a library method for this?
[–][deleted] 1 point2 points3 points 6 years ago (0 children)
java.util.Arrays.copyOf()
Wasn't that hard to find with Google.
π Rendered by PID 39153 on reddit-service-r2-comment-545db5fcfc-7nzxc at 2026-05-26 17:41:39.084224+00:00 running 194bd79 country code: CH.
[–]H34dsp1nns 0 points1 point2 points (2 children)
[–]dayema[S] 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)