is it import java.io.*?
Yes. Don't forget that you also need to use "import java.util.*" to get the scanner as well.
You also use "import java.util." to use random numbers. There is also "import java.awt." that you would need to use graphics in your program.