Here you can find the source of zenkakuToHankaku(String value)
private static String zenkakuToHankaku(String value)
//package com.java2s; public class Main { private static String zenkakuToHankaku(String value) { StringBuilder sb = new StringBuilder(value); for (int i = 0; i < sb.length(); i++) { int c = (int) sb.charAt(i); if ((c >= 0xFF10 && c <= 0xFF19) || (c >= 0xFF21 && c <= 0xFF3A) || (c >= 0xFF41 && c <= 0xFF5A)) { sb.setCharAt(i, (char) (c - 0xFEE0)); }// w ww . java2 s . c o m } value = sb.toString(); return value; } }