mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-11 02:39:37 +07:00
15 lines
344 B
Java
15 lines
344 B
Java
// "Replace with sum()" "false"
|
|
|
|
import java.io.BufferedReader;
|
|
import java.io.IOException;
|
|
|
|
public class Main {
|
|
void test(BufferedReader br) throws IOException {
|
|
String line = "";
|
|
long count = 0;
|
|
wh<caret>ile((line = br.readLine()) != null) {
|
|
count+=(line = line.trim()).length();
|
|
}
|
|
System.out.println(count);
|
|
}
|
|
} |