[Javaããã°ã©ãã³ã°é¢é£] Javaã®Stringä¸ã®å ¨è§åè§ã®å¤å® Javaã«ããã¦ã¯æååã¯å ¨ã¦UNICODEã§è¡¨ç¾ããããããå ¨è§åè§ã®å¤å®ãåæåã®UNICODEã§å¤æããä»ããã¾ããã以ä¸ã®ãµã³ãã«ããã«å¤å®ãã¾ãã public class Hankaku { public static void main() { String s = "å ¨è§hanæ¼¢å\\~ï½ï½¶ï¾ "; System.out.print( s+": " ); for( int i=0; i<s.length(); i++ ) { char c = s.charAt( i ); if( ( c<='\u007e' )|| // è±æ°å ( c=='\u00a5' )|| // \è¨å· ( c=='\u203e' )|| // ~è¨å· ( c>='\uff61' && c<='\uff9f' ) // åè§ã«ã
{{#tags}}- {{label}}
{{/tags}}