List<String> strList = Arrays.asList("jiwoong", "", "hyungjoon", "", 
"minseung", "hyunjoon","yoochul","Tea0");

빈 문자열의 개수를 출력하세요.(filter , isEmpty)

h로 시작하는 문자열의 개수를 출력하세요(startsWith)

길이가 2 이상인 문자열만 따로 리스트에 저장해주세요(toList)

백준 문제 스트림으로 풀기

최댓값문제

2562번: 최댓값

import java.io.*;

public class Main{

    public static void main(String []args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int max = Integer.MIN_VALUE;
        int index = 0;
        for(int i=1;i<=9;i++){
            int num = Integer.parseInt(br.readLine());
            if(num>max) {
                max = num;
                index = i;
            }
        }
        System.out.println(max);
        System.out.println(index);
    }
}

template

//복붙하세요
import java.io.*;
import java.util.*;
import java.util.stream.IntStream;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int[] arr = new int[9];
       for(int i=0;i<9;i++){
        arr[i] = Integer.parseInt(br.readLine());
    }
       //-----------------------------------

			//---------------------------------------
    }
}