FOLLOW ME Twitter Facebook Вконтакте LinkedIn RSS Feed
Browsing articles tagged with " unicode"

Arrow symbols in Java

Oct 14, 2012
Category: 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";
  0 1 2 3 4 5 6 7 8 9 A B C D E F
\u219x
\u21Ax
\u21Bx
\u21Cx
\u21Dx
\u21Ex
\u21Fx