0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MASCHINE test Linear Regression with Multiple Variables

Posted at

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(zenkakuAlphabetToHankaku("☆Javaプログラミング☆"));
}
}00.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?