Display smiley face character in Java |
package javaex_smileyface; /** * @web http://java-buddy.blogspot.com/ */ public class JavaEx_SmileyFace { public static void main(String[] args) { System.out.println('\u263A'); System.out.println('☺'); } }
remark: Not all Operating Systems can display extended Unicode symbols, regardless of bundling the fonts with the programs. If it can't display the Unicode symbol, it displays a Square instead.
Just be aware that not all Operating Systems can display extended Unicode symbols, regardless of bundling the fonts with the programs.
ReplyDeleteIf it cant display the Unicode symbol, it displays a Square instead. Hungarian is notorious for this.
Thanks Tiwa
Deleteits giving questionmark symbol. am using windows7 operating system.
ReplyDeleteDude ,its giving ?mark symbol ....i need smiley face instead.
ReplyDelete