Hello
Thanks for previous reply, by which I was able to write the program using
2D array.
In another program, I need to declare a 2D square array, which I need to
access in multiple functions of the class. The overall structure is here:
*public class MyClass {
//I think I have to declare gridInfo here. It would be 2D array and used in
myFunc.
public def this() {
**//Should I allocate gridInfo here?
**//val gridInfo = new Array[double]((0..gridSize)*(0..gridSize), 0);
}
public static def myFunc(myNumber:int) {
// I need to use gridInfo here
}
public static def main(args: Array[String](1)) {
//Or Should I allocate gridInfo here?
}
}*
Would you please tell me how should I declare and allocate gridInfo array?
The dimensions are already known (constant).
Thanks for your help.
Thanks and Regards
Sparsh Mittal
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users