MCPcopy Create free account
hub / github.com/algorithmzuo/algorithm-journey / show

Method show

src/class019/Code05_Kattio.java:65–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63 // 可以找个一些具体题目试一试
64 // 这里就是罗列了一下
65 public static void show() {
66 Kattio io = new Kattio(); // 自动接入输入输出流
67 io.next(); // 读取下一个字符串,注意不是整行,是以空格或回车分割的字符串,一个一个读取
68 io.nextInt(); // 读取下一个int
69 io.nextDouble(); // 读取下一个double
70 io.nextLong(); // 读取下一个long
71 io.println("ans"); // 答案进入输出流
72 io.flush(); // 答案刷给后台
73 io.close(); // 关闭io
74 }
75
76 // Kattio类IO效率很好,但还是不如StreamTokenizer
77 // 只有StreamTokenizer无法正确处理时,才考虑使用这个类

Callers

nothing calls this directly

Calls 7

nextMethod · 0.95
nextIntMethod · 0.95
nextDoubleMethod · 0.95
nextLongMethod · 0.95
printlnMethod · 0.45
flushMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected