This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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. ^^
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com