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

Method main

day12/code/day12_String/src/cn/itcast_02/StringDemo4.java:9–20  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

7 */
8public class StringDemo4 {
9 public static void main(String[] args) {
10 String s1 = "hello";
11 String s2 = "world";
12 String s3 = "helloworld";
13 String s4 = s1 + s2;
14 String s5 = "hello"+"world";
15 System.out.println(s4);
16 System.out.println(s5);
17// System.out.println(s3 == s1 + s2);// false
18// System.out.println(s3.equals(s1 + s2));// true
19// System.out.println(s3 == "hello" + "world");// true
20 }
21}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected