This discussion is archived
0 Replies Latest reply: Feb 25, 2013 11:20 PM by 890898 RSS

Assign Value to Vector

890898 Newbie
Currently Being Moderated
Hi,
I want to assign a value to a vector. For example : Ex_1(3,4)=5 ; Ex_2 (6,7,8)=50 ....

I used the array to solve this question now. Int [][] Ex= new int[][];
But the dimension of my example is not certain (dimension=2,3,4...), I don't know how to solve it by using array. Is there any better way to assign a value to a vector?

Thank you for your help.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points