ソースを参照

Improved Security

Kenneth van Ewijk 11 年 前
コミット
6eab5dfa9c
2 ファイル変更5 行追加5 行削除
  1. 1 1
      DewPoint.java
  2. 4 4
      Grootheid.java

+ 1 - 1
DewPoint.java

@@ -21,7 +21,7 @@ public class DewPoint extends Grootheid
     }
     
     public void display(){
-        GUIboard.writeUpperDigits(current);
+        GUIboard.writeUpperDigits(getCurrent());
         GUIboard.writePageToMatrix("Dauwpunt", "Gemiddelde: " + getAvg(), "");
     }
     

+ 4 - 4
Grootheid.java

@@ -3,10 +3,10 @@ import java.util.ArrayList;
 public class Grootheid
 {
     // instance variables - replace the example below with your own
-    public double avg;
-    public double max;
-    public double min;
-    public double current;
+    private double avg;
+    private double max;
+    private double min;
+    private double current;
 
     //constructor
     public Grootheid(){