I was assigned to port a piece of code, but I'm stuck.
Let's see, the original code seems to generate a matrix of empty arrays, then populate it with booleans
So far I've extracted that nested function and ported the easy stuff, but I'm stuck on the for loops. I don't know whether to make the matrix using primitive arrays or use Collections (ArrayList for example). I know that it's always better to use Collections and using primitive arrays is generally wrong... but then I don't know how to do it. Oh, and this is for a little Android App.
A hint or some help will be greatly appreciated. Thanks!
If you want to use Lists, it would be something like:
I'd stick with arrays of booleans until you have a compelling reason not to.
Joined: Feb 06, 2013
I've been busy lately, sorry for not replying. Thanks for the answer, it will help. ^^