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";


No comments: