처음에 내가 짠 코드.

if ( c>='A' && c<='Z'){

System.out.println(c + " -> 대문자");

} else if ( c>='a' %% c<='z')

System.out.println(c + " -> 소문자"); 

} else {

System.out.println(c + " -> 기타문자");

}

+ Recent posts