728x90
반응형
문제
728x90
풀이
1
2
3
4
5
6
|
class Solution {
public int solution(String myString, String pat) {
return myString.toLowerCase().indexOf(pat.toLowerCase()) != -1 ? 1 : 0;
}
}
|
cs |
반응형
728x90
반응형
'[JAVA] 프로그래머스 스쿨 > Java Lv.0' 카테고리의 다른 글
[프로그래머스/Java] Lv.0 소문자로 바꾸기 (0) | 2024.01.23 |
---|---|
[프로그래머스/Java] Lv.0 대문자로 바꾸기 (0) | 2024.01.22 |
[프로그래머스/Java] Lv.0 길이에 따른 연산 (0) | 2024.01.20 |
[프로그래머스/Java] Lv.0 조건에 맞게 수열 변환하기 1 (0) | 2024.01.20 |
[프로그래머스/Java] Lv.0 n보다 커질 때까지 더하기 (0) | 2024.01.20 |