<p>Basically, I'm just trying to create a separate method that will make a file named "output.txt" and put the values in "simpleArray" in it. But, it's not working, and I don't know what I'm doing wrong! Thanks.</p>
<p>Didn’t look at the code much but I do see that you only instantiate variables in your main method and never use your outputFile method. Maybe this?</p>
<ol>
<li><p>You never called the outputFile method in your main method.
Fix this with this line:
outputFile(outFile,simpleArray);</p></li>
<li><p>You used a constant in your for loop that might cause an out of bounds exception.
Fix this by changing x < 8 to x < simpleArray.length</p></li>
</ol>
<p>Wow, thanks guys! ManMan, before I was creating just a static not a static void, so it was asking me to “return” something, that’s where I was getting caught. Thanks a lot for the help.</p>
<p>@supernaut, thank you too! Your #1 requires a static method, which I’ve fixed, and your #2 was quite helpful. Thanks :)</p>