MCPcopy Create free account
hub / github.com/DuGuQiuBai/Java / main

Method main

day21/code/day21_IO/src/cn/itcast_04/StringDemo.java:10–21  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

8 */
9public class StringDemo {
10 public static void main(String[] args) {
11 // hello���
12 // String s = "hello";
13 // byte[] bys = s.getBytes();
14 // // [104, 101, 108, 108, 111]
15 // System.out.println(Arrays.toString(bys));
16
17 String ss = "�Ұ�������ϼ";
18 byte[] bys = ss.getBytes();
19 // [-50, -46, -80, -82, -60, -29, -63, -42, -57, -32, -49, -68]
20 System.out.println(Arrays.toString(bys));
21 }
22}

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected