how to use chinese and japanese character as string in java?

后端 未结 4 871

Hi
I am using java language. In this I have to use some chinese, japanese character as the string and print using System.out.println().

How can I do tha

4条回答
  •  失恋的感觉
    2020-11-27 21:48

    Just use it, Java Strings are fully unicode, so there should be nothing hard to just say

    System.out.println("世界您好!");
    

提交回复
热议问题