Reading input and storing into array

I am having trouble doing so. I am required to have the user enter integers seperated by commas and I need to then store only the integers into an array. I am new to java. I tried the skip method but I don;t know how it works. Here is what I have so far. Thanks in advance!