브론즈4
https://www.acmicpc.net/problem/10808
public class boj_10808 {
public static void main(String[] args) throws IOException {
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
Map<Character, Long> input = r.readLine().chars()
.mapToObj(c -> (char) c)
.collect(Collectors.groupingBy(c -> c, Collectors.counting()));
IntStream.range('a','z'+1)
.forEach(alphabet ->
System.out.print(input.getOrDefault( (char)alphabet,0L)+" "));
}
}
public class boj_10808 {
public static void main(String[] args) throws IOException {
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
String str = Arrays.stream(r.readLine().split("")).collect(Collectors.joining());
IntStream.range('a','z'+1)
.forEach( alphabet ->
System.out.print( str.chars().filter( ch -> ch == alphabet).count()+" "));
}
}