이번 문제는 소문자, 대문자 구분없이 입력된 알파벳을 모두 대문자로 변환해서 return만 해주면 되는! 아주 간단한 문제이다.
풀이..할 것도 없이 toUpperCase, toLowerCase를 알고 있으면 이번 문제는 아주 쉽게 풀 수 있다!
package list;
public class Programmers_toUpperCase {
public static String solution(String myString) {
return myString.toUpperCase();
}
public static void main(String[] args) {
// 파라미터
String result = solution("aBcDeFg");
// 솔루션 값 출력
System.out.print(result);
}
}
문제 풀이 끝..!
깃허브는 아래에!
iamheonil - Overview
Keep going 👨💻. iamheonil has 22 repositories available. Follow their code on GitHub.
github.com
반응형