<code>public class mHandler
{
public static int num=4;
...............
...........
.........
......
public static void main(String[] args)
{
some code}
}
public class A
{
int num;
B aList[]=new B[num];
}
public class B
{
int x;
int y;
public B(int a,int b)
{
this.x=a;
this.y=b;
}
}
</code>
although i have defined num as global variable, i can not define the arrays using num in the array element brackets like [num] in the class A.. Specifically aList[num] is not defined