Original Post
the only real difference I see in doing: import java.nio.*; or import java.nio.channels.SocketChannel; is that on the first, I get the whole NIO into my program, and the latter, I get only this bit of NIO which corresponds to the Socket Channel. but if I "import java.nio.*;" I get "unable to resolve symbol on lines like: ServerSocketChannel ssc = ServerSocketChannel.open(); which works fine if I do "import java.nio.channels.ServerSocketChannel;" so i have all this: import java.io.IOException; import java.net.InetSocketAddress; import java.nio.ByteBuffer; import java.nio.channels.ServerSocketChannel; import java.nio.channels.SocketChannel; import java.nio.charset.Charset; instead of the shorts: import java.io; import java.net.*; import java.nio.*; shouldnt the shorts work too?