Hi all,
    My code as below,

     public class MapTest extends MapReduceBase implements Mapper {
                private int[][] myTestArray;
                private int myTestInt;

                public MapTest()
                {
                       System.out.println("The construtor run !");
                       myTestArray=new int[10][10];
                       myTestInt=100;
                 }
.........................

  }

 when I run this program,I find the constructor run and the parameter
myTestInt is 100,but myTestArray is null and can not initialize. I've
no idea why the object will not initialize in Map's constructor ?
Thank you for your reply !

Qiang Ma

Reply via email to