Hi,
Programming with NIO API is very hard and complicate than traditional blocking IO (streams) in java.  I found a good sample in the web that easily demonstrate java NIO features using a chat application.

ChatterClient
ChatterServer

have a nice time.