2
我想在我的Java代码中打印一些印地语数字(Unicode范围:0966 - 096F)。
打印与index
关联,该关联正在递增for loop
。一些示例代码:增加一个Unicode字符?
for(int i = 0; i < 10; i++) {
System.out.println(/* I need the Hindi numbers from 0-9 printed here (value of i in each iteration but in Hindi));
}
我试着这样做:
System.out.println("\u0966" + i);
不用说,这是行不通的。我的问题是:
1.如何增加以Unicode表示的数字?
的' “” +'不是必需的。 –
@Peter Lawrey:你说得对,我改变了 – MrSmith42