Tuesday, July 2, 2013

Arrow symbols in Java

Unicode is a major feature which Java supports perfectly. This means you can use ANY unicode symbols in your code. Arrow symbols are quite useful. Here is so-called “The Unicode Arrows Block” with characters codes. To use arrow symbols in a Java application just write something like this:
String msg = "Press \u2191 button to go up";
or, if your favorite editor supports unicode, copy and paste any symbol from here
String msg = "Press ↑ button to go up";

 0123456789ABCDEF
\u219x
\u21Ax
\u21Bx
\u21Cx
\u21Dx
\u21Ex
\u21Fx

No comments: