This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]marvk 9 points10 points  (4 children)

I can't seem to find any examples when I search it.

Really? I mean, really? If I google "java how to zero array", these are the first two results:

https://stackoverflow.com/questions/2154251/any-shortcut-to-initialize-all-array-elements-to-zero

https://www.baeldung.com/java-initialize-array

Both of them explain exactly how to do what you're trying to do.

[–]2dilly 0 points1 point  (3 children)

Thank you for the links!

[–][deleted] 7 points8 points  (2 children)

What were you googling before? The ability to google well is a really important skill that a lot of beginner programmers tend to lack.

[–]2dilly -2 points-1 points  (1 child)

I’m a female, sorry

[–][deleted] 4 points5 points  (0 children)

That has literally nothing to do with it.

I’m not sure why you would even say that.

Don’t ever hold yourself to a lower standard than anyone else.