... nextmethodsaddMessageListener, 104 , 107 close, 100 , 107 .out, 97, 106 .println, see printlnnetwork event handling, 103 new, 20next, 100 , 104 , 106 nextInt, 102 nextLine, 97 104 , 106 not, logical, 185NullPointerException, ... nestedNetConnection, 92 107 construction, 96–97, 106 .in, 97, 106 .hasNextLine, see hasNextLine.nextLine, see nextLine.nextInt, see nextInt.next, see nextmethodsaddMessageListener, 104 , 107 close, 100 , 107 .out, ... 182print, 99, 107 println, 97 100 , 106 private, 34, 166private method, 166program, 1, 6 programming, 7, 30protocols, 82application, 87chat, see OSCARmail, see SMTP, IMAP, and POPtransport,...