Code example for Scanner

Methods: nextLong

0
 
   /** 
     * Read and return the next long. 
     */ 
    public static long readLong() { 
        return scanner.nextLong();
    } 
 
   /** 
     * Read and return the next short. 
     */ 
    public static short readShort() { 
        return scanner.nextShort();
    } 
 
   /** 
     * Read and return the next byte. 
     */ 
    public static byte readByte() { 
        return scanner.nextByte();