Java 문자열에 포함된 특정 문자의 개수를 구하는 방법을 알아봅시다. 🚀 1. 반복문String str = "1001123";char findChar = '1';int count = 0;for(int i=0; i 🚀 2. Stream 이용(Java 8 이후 버전)String str = "1001123";char findChar = '1';long count = str.chars().filter(s->s==findChar).count();System.out.println(count); 🚀 3. replace() 이용String str = "1001123";char findChar = '1';int count = str.length()-str.replace(String.valueOf(findChar)..