InputMismatchException


InputMismatchException java.util

Java 5.0 serializable unchecked

An exception of this type is thrown by a Scanner that is not of the expected type or is out of range. Note that the Scanner implements the Iterator interface, and this exception is a subclass of NoSuchElementException , which is thrown by Iterator. next ( ) when no more elements are available.

Figure 16-34. java.util.InputMismatchException

 public class  InputMismatchException  extends NoSuchElementException {  // Public Constructors  public  InputMismatchException  ( );        public  InputMismatchException  (String  s  );   } 



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net