Hallöchen an alle,
das ist sicher eine gute Anfänger frage die sicher schon sehr oft gestellt wurde!
Wie schaft man also das "Anfängerparadoxon" zu lösen?
lg Joe?
das ist sicher eine gute Anfänger frage die sicher schon sehr oft gestellt wurde!
Wie schaft man also das "Anfängerparadoxon" zu lösen?
lg Joe?
HTML:
1: import java.awt.Point;
2:
3: class ReferencesTest {
4: public static void main (String arguments[]) {
5: Point pt1, pt2;
6: pt1 = new Point(100, 100);
7: pt2 = pt1;
8:
9: pt1.x = 200;
10: pt1.y = 200;
11: System.out.println("Point1: " + pt1.x + ", " + pt1.y);
12: System.out.println("Point2: " + pt2.x + ", " + pt2.y);
13: }
14: }