Skip to content

Commit

Permalink
Types fixed / const added to literals
Browse files Browse the repository at this point in the history
string -> String (Java)
Too much C# lately.
Also added const keyword.
  • Loading branch information
Sütheö István committed May 17, 2024
1 parent 8bdcb57 commit 5787b5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Drumakomi_sivatag/src/main/java/GameView.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class GameView extends JFrame implements ActionListener {
private int time = 5;
private int xcord =1280;
private int ycord =720;
private string hegyImage = "\\src\\main\\java\\images\\hegy.png";
private const String hegyImage = "\\src\\main\\java\\images\\hegy.png";

static ArrayList<Image> Pipe = new ArrayList<>();
static ArrayList<Image> Pump = new ArrayList<>();
Expand Down
2 changes: 1 addition & 1 deletion Drumakomi_sivatag/src/main/java/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public abstract class Player implements Serializable {
/**
* Error üzenet
*/
private string notAbleToMove = "A mozgas nem engedelyezett";
private const String notAbleToMove = "A mozgas nem engedelyezett";

/**
* A jatekos ennyi korig nem kepes mozdulni
Expand Down

0 comments on commit 5787b5e

Please sign in to comment.