Code example for Scanner

Methods: useLocale

0
                               charsetName));
    } 
     
    private static void setScanner(Scanner scanner) {
        StdIn.scanner = scanner;
        StdIn.scanner.useLocale(usLocale);
    } 
 
    // do this once when StdIn is initialized 
    static { 
        resync(); 
    } 
 
   /** 
     * Reads all ints from stdin. 
     * @deprecated For more consistency, use {@link #readAllInts()} 
     */ 
    public static int[] readInts() { 
        return readAllInts(); 
    }