Foo results = new Foo [tasks.length] [priorities.length];for (int tx = 0; tx < tasks.length; ++tx){for (int px = 0; ix < priorities.length; ++px){Task task = tasks[tx];Priority priority = priorities[px];results [px][tx] = whatDoYouWantHerePleaseTellUs(task, priority);
Oops. '[tx][px]' . I got it backwards.
--}}You need to tell us what you want in that box.Obviously it's a value that depends on the two indexing values. You likely would want to factorthat out as a method on the two arguments as I showed here.So what do you want in that box?--Lew
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment