zoukankan      html  css  js  c++  java
  • 模板

    快速读入类:

    class Scanner {
        private BufferedReader br;
        private StringTokenizer st;
     
        Scanner(InputStream in) {
            br = new BufferedReader(new InputStreamReader(in));
            st = new StringTokenizer("");
        }
     
        String nextLine() {
            try {
                return br.readLine();
            } catch (IOException e) {
                throw new IOError(e);
            }
        }
     
        boolean hasNext() {
            while (!st.hasMoreTokens()) {
                String s = nextLine();
                if (s == null) {
                    return false;
                }
                st = new StringTokenizer(s);
            }
            return true;
        }
     
        String next() {
            hasNext();
            return st.nextToken();
        }
     
        int nextInt() {
            return Integer.parseInt(next());
        }
     
        long nextLong() {
            return Long.parseLong(next());
        }
     
        double nextDouble() {
            return Double.parseDouble(next());
        }
    }
    
  • 相关阅读:
    如何找回Oracle所有用户丢失的密码
    数据库范式详解
    lua
    cdn
    初心
    广州
    vim 命令
    git 命令
    Linux琐碎
    汪国真语录
  • 原文地址:https://www.cnblogs.com/Inko/p/11383576.html
Copyright © 2011-2022 走看看