mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 01:50:56 +07:00
14 lines
259 B
Java
14 lines
259 B
Java
public class AssignmentAndReassignmentInLoop {
|
|
|
|
public void test() {
|
|
for(int i = 0; i < 3; i++) {
|
|
String replacement = "foo";
|
|
String <caret>original = replacement;
|
|
|
|
replacement = "bar";
|
|
|
|
System.out.println(original);
|
|
}
|
|
}
|
|
|
|
} |