|
I don't know what the original poster wants to do?
-------------------------------------------------- --------------
public class StringTest {
public static void changeStr(String str){
str="bbb";
if (str== ???) //Here I want to compare with String str in the main function. How do I write this sentence? ?
I just wanna do this
System.out.println("==");
}
public static void main(String[] args) {
String str="aaa";
changeStr(str);
System.out.println(str);
}
} |
|