๐ŸŸฉ ๋ฌธ์ œ

 

 

๐ŸŸฉ ํ•ด๊ฒฐ๋ฐฉ๋ฒ•

  • ๋ฐฐ์—ด์†์— ์žˆ๋Š” ๊น€์„œ๋ฐฉ์„ ์ฐพ์•„๋ณด์ž!

๐ŸŸฉ ์ฝ”๋“œ

public String solution(String[] seoul) {
        String answer = "";
        int find = 0;

        for(int i=0;i<seoul.length;i++)
            if(seoul[i].equals("Kim"))
                find=i;

        return answer="๊น€์„œ๋ฐฉ์€ "+find+"์— ์žˆ๋‹ค";
    }

+ Recent posts