Carey Brown wrote:I know you can't edit the post but you could re-post the entire class. Re-posting is often needed just because several people make suggestions and it's hard to visualize which changes you made and how you made them, so, a re-post puts us back in sync.
Carey Brown wrote:I'm assuming you've built a rudimentary class with a main() method in order to run your snippets. It would be helpful to us to see your whole class so that we can see for ourselves what you are doing with "args" vs "args2".
Campbell Ritchie wrote:What you are doing when you assign the two elements of your array in lines 2‑3 is creating new arrays and putting them in the two locations in your outer array, so, yes, what you thought seems to be correct.
Campbell Ritchie wrote:You would do better to import java.util.Arrays, and use this method, or this method for simpler cases.
Junilu Lacar wrote:TIP: Use the Preview button before posting a message so you can see the line numbers in the code that you post inside code tags. Then you can reference the correct line numbers.
You wrote:I get errors in line 19 and 20
... actually, lines 11 and 12 in the code you posted.
You wrote techniques.size instead of techniques.size().
And again, you might want to use java.util.Random instead of Math.random(). The code is much clearer when you use Random.