Originally posted by lad12 Array.get();
and in the method get i read in 2 strings and an int from the keyboard...can you read in 3 parts of information into 1 component of the array...
Originally posted by lad12 Exception in thread "main" java.lang.NullPointerException at Directory.main(Directory.java:26) Anyone know what the problem is....
int[] Array = new int[10]; // that works fine alright myObject[] Array = new myObject[]; // not done yet. You've only created the refs to the objects.... for(int i = 0; i < 10; i++) Array[i] = new myObject(); // now you have an created all the objects