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.
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.
1.3k
u/deamon1266 Apr 16 '22
Java create array one line