๐ก๋์๋ฌธ์๊ฐ ์์ฌ์๊ธฐ๋๋ฌธ์
๋๋ค ๋๋ฌธ์ or ์๋ฌธ์๋ก ํต์ผํด์ค์ ๋น๊ตํด์ค๋ค.
๐ฌ str. toUpperCase() : ๋๋ฌธ์ ๋ณ๊ฒฝ๋ฉ์๋
๐ฌ str . toLowerCase() : ์๋ฌธ์ ๋ณ๊ฒฝ ๋ฉ์๋
class Solution {
public int solution(String myString, String pat) {
int answer = 0;
myString = myString.toUpperCase();
pat = pat.toUpperCase();
if (myString.contains(pat)) {
answer = 1;
}else {
answer = 0;
}
return answer;
}
}