MASCHINE test Linear Regression with Multiple Variables

740 단어 Java
package samples.string.japanese;
public class ZenkakuAlphabetToHankakuAlphabet {
public static String zenkakuAlphabetToHankaku(String s) {
StringBuffer sb = new StringBuffer(s);
for (int i = 0; i < sb.length(); i++) {
char c = sb.charAt(i);
if (c >= 'a' && c <= 'z') {
sb.setCharAt(i, (char) (c - 'a' + 'a'));
} else if (c >= 'A' && c <= 'Z') {
sb.setCharAt(i, (char) (c - 'A' + 'A'));
}
}
return sb.toString();
}
public static void main(String[] args) {
System.out.println(zenkaku AlphabbetToHankaku("☆Java 프로그래밍☆");
}
}

좋은 웹페이지 즐겨찾기