Method that creates a null array

Hi all - I am having a little trouble getting going on the methods for this assignment. I need to use a method which passes a Scanner as the object to create an array that is the correct size, but has null values. It reads in a file which contains a number on a single line at the top, which is the number of Student objects that are on the list. The Student objects themselves are first name, last name, followed by three test scroes. I am new to Java and am struggling on getting this going and am looking for any advice. The method must only return an array of correct size but with null values..as other methods will be used to populate the array. For example, if the number on the first line is three, it needs to create an array with fifteen null "slots".

@stultuske, you are correct, but I want to be explicit. It would be good for beginners to not jump steps but rather go through it at least for a few times when they still don't understand the language enough. :) A good thing for showing this is that they should at least have an idea how to create an object array and be able to assign other values even though it is not null.

I kind of understand how to create the array with a specified size, but I am confused as to how to implement it into a method with a scanner class..I can't figure out how to get it to read the first line of the program and take that information and create an array.

Reading a line from the file via a scanner is exactly the same as reading stuff from the console via a scanner, and you already have done that at least once! Just use an ordinary Scanner method like nextLine, nextInt etc. to read the info from the scanner and use that info to specify the size of the array. This is a lot easier than you think!

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...

Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...