Hi Donielle
would do that for you.
But thats not what you really want

.
You build a Map with the found integers as key and the number of their occurences as value. So, when you're finished with building the map, you have to loop over it (hint: Map.entrySet()) and print those keys with an associated value > 1. But maybe your textbook has examples for that.
Further: Your Scanner takes a String as constructor-argument. So what you actually are scanning is the string "assignment.txt" and not the content of a file with that name. Fortunately there's also a constructor that takes an InputStream. So all you have to do is first create a FileInputStream on your "assignment.txt"-file.
Stefan
Here's my new code:
Now I'm getting this:
Duplicate4.java:15: cannot find symbol
symbol : method hasNextInt()
location: class java.io.InputStream
while(myFileStream.hasNextInt())