Hi... Currently I am doin the k nearest neighbour classification using java.. The data size for training data set and test data set consist of 10k samples each.. I have to calculate the distance for the data set.. So I create and 2D array to store them as for all samples in training data set have to calculate to each sample in the test data set... So the dimension of my 2d array is dist[10000][10000] and this seems to cause the exception... I would like to check whether any1 got an idea to solve this???