Discuss / Java / 作业qwq

作业qwq

Topic source

ほどせい

#1 Created at ... [Delete] [Delete and Lock User]

    public static void main(String[] args) {

        int a = 72;

        int b = 105;

        int c = 65281;

        String s = "" + a + b + c;

        System.out.println(s);

    }

旖风刈草

#2 Created at ... [Delete] [Delete and Lock User]
int a = 72;int b = 105;int c = 65281;// FIXME:String s = "" + (char)a + (char)b + (char)c;System.out.println(s);

要做一步强转,转为Char,以将int作为Unicode字符处理


  • 1

Reply