Skip to content

Commit 6244dbd

Browse files
committed
add test9 about String
1 parent a75d87c commit 6244dbd

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed
350 Bytes
Binary file not shown.

src/com/duweri/interview/AllTestHere.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ public static void main(String[] args) {
1616
// AllTestHere.test5();
1717
// AllTestHere.test6();
1818
// AllTestHere.test7();
19-
AllTestHere.test8();
19+
// AllTestHere.test8();
20+
AllTestHere.test9();
2021
}
2122

2223
public static void test1() {
@@ -143,5 +144,14 @@ public static void test8(){
143144
}
144145
}
145146

147+
public static void test9(){
148+
String x="fmn";
149+
x.toUpperCase();
150+
System.out.println(x);
151+
String y=x.replace('f','F');
152+
System.out.println(y);
153+
y=y+"wxy";
154+
System.out.println(y);
155+
}
146156

147157
}

0 commit comments

Comments
 (0)