-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTest.java
More file actions
25 lines (22 loc) · 513 Bytes
/
Copy pathTest.java
File metadata and controls
25 lines (22 loc) · 513 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import com.yale.test.run.RunntimeTest;
public class Test {
public static void main(String[] args) {
System.out.println(System.getProperty("user.dir"));
String str = "abc";
Test.isSame(str);
Test.testStr(str);;
System.out.println(str);
}
public static void isSame(String str){
String strSec = "abc";
if (strSec == str) {
System.out.println(true);
} else {
System.out.println(false);
}
}
public static void testStr (String str) {
str += "追加";
System.out.println(str);
}
}