Cannot return array to main method

New Member

Im trying to return intArray from the wordCheck method and the error cannot find symbol - variable intArray is appearing in lines 10,11, and 12 when I try to print the values from the array. I was wondering if I am declaring the method wrong or not using a proper return, or am possibly making my array poorly. The array should also be scanning text document to check how many times a word appears and was wondering if the way my loop is written it will actually return the proper value.