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

Method main

day12/code/day12_String/src/cn/itcast_06/StringDemo.java:9–19  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

7 */
8public class StringDemo {
9 public static void main(String[] args) {
10 // �����ַ���
11 String s = "helloworld";
12
13 String s2 = s.replace('l', 'b');
14 System.out.println("s:" + s);
15 System.out.println("s2:" + s2);
16
17 String s3 = s.replace("owo", "ak47");
18 System.out.println("s3:" + s3);
19 }
20}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected