Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
アスキーコード(実際にはUnicode数値コード)を返し、そのコードをUnicode文字に変換する関数が必要です。.NETではChrWとAscWです。例:AscW( "A")は65、ChrW(65)はAです。
ありがとう。
実際、これらはVB.NETからのものであり、実際には.NETFrameworkからのものではありません。
Javaでは、acharは一種の整数型です。次のように変換したりint、元に戻したりできます。
char
int
String s = "abc"; char a = s.charAt(0); int a_codepoint = (int)a; char x = (char)120;