Here you can find the source of isAllHankaku(String str)
public static boolean isAllHankaku(String str)
//package com.java2s; public class Main { public static boolean isAllHankaku(String str) { boolean ret = true; if (str != null) { byte[] bytes = str.getBytes(); ret = (bytes.length == str.length()); }// w w w . j a va 2s . c o m return ret; } }