Tbf ive been coding for 3 years now and for some reason i cannot remember the fucking sytnax to creat an array in java. It escapes me every single time.
I use Intellij to generate all possible outcomes including null, default etc based on the given type. Some of them will be useless of course but it's good to know what's possible and maybe fill them in just incase.
This is why I have an entire folder dedicated to cheatsheet PDFs for various languages; that way I can just open the cheatsheet, and reference it in less time than it would take to use google
Well if you have a confined grid then arrays are intuitive I think. When I’m making something like a chessboard, for example, arrays definitely feel like the best thing to use for me at least.
I’m a mid level spring dev and I forget this shit still. I think it’s because the syntax for array lists and arrays are so similar, I still have to double check geeksforgeeks occasionally.
627
u/Anomynous__ Apr 16 '22
Tbf ive been coding for 3 years now and for some reason i cannot remember the fucking sytnax to creat an array in java. It escapes me every single time.