Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1 @@
String string = "abc" + "def";

View file

@ -0,0 +1,2 @@
String string = "abc";
string += "def";

View file

@ -0,0 +1 @@
String string = "abc".concat("def");

View file

@ -0,0 +1,2 @@
StringBuilder string = new StringBuilder();
string.append("abc").append("def");

View file

@ -0,0 +1,3 @@
StringBuilder string = new StringBuilder();
string.append("abc");
string.insert(3, "def");

View file

@ -0,0 +1 @@
String string = String.format("%s%s", "abc", "def");

View file

@ -0,0 +1 @@
String string = "%s%s".formatted("abc", "def");

View file

@ -0,0 +1,8 @@
String sa = "Hello";
sa += ", World!";
System.out.println(sa);
StringBuilder ba = new StringBuilder();
ba.append("Hello");
ba.append(", World!");
System.out.println(ba.toString());