gitweb on Svarog
projekti pod git sistemom za održavanje verzija -- projects under the git version control system
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0669757)
raw | patch | inline | side by side (parent: 0669757)
author | Ivan Pribela <ivanpribela@gmail.com> | |
Mon, 27 Nov 2017 13:42:57 +0000 (14:42 +0100) | ||
committer | Ivan Pribela <ivanpribela@gmail.com> | |
Mon, 27 Nov 2017 13:42:57 +0000 (14:42 +0100) |
PretrazivanjeSaVracanjem/Lavirint/ObjedinjenoResenje/Polje.java | patch | blob | history |
diff --git a/PretrazivanjeSaVracanjem/Lavirint/ObjedinjenoResenje/Polje.java b/PretrazivanjeSaVracanjem/Lavirint/ObjedinjenoResenje/Polje.java
index a037c37f93c5eff1ad42ce570ac94ff038f5691f..15676d1a300ae7afa640f15d8194e57cf234cea6 100644 (file)
* Klasa Polje se koristi za pamcenje x i y koordinata nekog polja, kao i\r
* vrednosti na toj poziciji u mapi\r
*/\r
-\r
public class Polje {\r
- private int x, y, v;\r
\r
- Polje(int x, int y, int v) {\r
+ private final int x, y, v;\r
+\r
+ public Polje(int x, int y, int v) {\r
this.x = x;\r
this.y = y;\r
this.v = v;\r
}\r
\r
public String toString() {\r
- return x + " " + y + " " + v;\r
+ return "(" + x + ", " + y + ") " + v;\r
}\r
-}
\ No newline at end of file
+}\r