Commit e183b48f authored by 9831045's avatar 9831045

Bug fixes

parent c07c04d8
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/out/production/Run/Lab.class" beforeDir="false" afterPath="$PROJECT_DIR$/out/production/Run/Lab.class" afterDir="false" /> <change beforePath="$PROJECT_DIR$/out/production/Run/Lab.class" beforeDir="false" afterPath="$PROJECT_DIR$/out/production/Run/Lab.class" afterDir="false" />
<change beforePath="$PROJECT_DIR$/out/production/Run/Run.class" beforeDir="false" afterPath="$PROJECT_DIR$/out/production/Run/Run.class" afterDir="false" /> <change beforePath="$PROJECT_DIR$/out/production/Run/Run.class" beforeDir="false" afterPath="$PROJECT_DIR$/out/production/Run/Run.class" afterDir="false" />
<change beforePath="$PROJECT_DIR$/out/production/Run/Student.class" beforeDir="false" afterPath="$PROJECT_DIR$/out/production/Run/Student.class" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Lab.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Lab.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/Lab.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Lab.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Run.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Run.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/Run.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Run.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Student.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Student.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/Student.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Student.java" afterDir="false" />
...@@ -72,22 +71,22 @@ ...@@ -72,22 +71,22 @@
<screen x="0" y="0" width="1366" height="728" /> <screen x="0" y="0" width="1366" height="728" />
</state> </state>
<state x="275" y="21" key="#Project_Structure/0.0.1366.728@0.0.1366.728" timestamp="1583492226195" /> <state x="275" y="21" key="#Project_Structure/0.0.1366.728@0.0.1366.728" timestamp="1583492226195" />
<state width="1366" height="180" key="GridCell.Tab.0.bottom" timestamp="1583501471086"> <state width="1366" height="180" key="GridCell.Tab.0.bottom" timestamp="1583501691943">
<screen x="0" y="0" width="1366" height="728" /> <screen x="0" y="0" width="1366" height="728" />
</state> </state>
<state width="1366" height="180" key="GridCell.Tab.0.bottom/0.0.1366.728@0.0.1366.728" timestamp="1583501471086" /> <state width="1366" height="180" key="GridCell.Tab.0.bottom/0.0.1366.728@0.0.1366.728" timestamp="1583501691943" />
<state width="1366" height="180" key="GridCell.Tab.0.center" timestamp="1583501471086"> <state width="1366" height="180" key="GridCell.Tab.0.center" timestamp="1583501691943">
<screen x="0" y="0" width="1366" height="728" /> <screen x="0" y="0" width="1366" height="728" />
</state> </state>
<state width="1366" height="180" key="GridCell.Tab.0.center/0.0.1366.728@0.0.1366.728" timestamp="1583501471086" /> <state width="1366" height="180" key="GridCell.Tab.0.center/0.0.1366.728@0.0.1366.728" timestamp="1583501691943" />
<state width="1366" height="180" key="GridCell.Tab.0.left" timestamp="1583501471086"> <state width="1366" height="180" key="GridCell.Tab.0.left" timestamp="1583501691942">
<screen x="0" y="0" width="1366" height="728" /> <screen x="0" y="0" width="1366" height="728" />
</state> </state>
<state width="1366" height="180" key="GridCell.Tab.0.left/0.0.1366.728@0.0.1366.728" timestamp="1583501471086" /> <state width="1366" height="180" key="GridCell.Tab.0.left/0.0.1366.728@0.0.1366.728" timestamp="1583501691942" />
<state width="1366" height="180" key="GridCell.Tab.0.right" timestamp="1583501471086"> <state width="1366" height="180" key="GridCell.Tab.0.right" timestamp="1583501691943">
<screen x="0" y="0" width="1366" height="728" /> <screen x="0" y="0" width="1366" height="728" />
</state> </state>
<state width="1366" height="180" key="GridCell.Tab.0.right/0.0.1366.728@0.0.1366.728" timestamp="1583501471086" /> <state width="1366" height="180" key="GridCell.Tab.0.right/0.0.1366.728@0.0.1366.728" timestamp="1583501691943" />
<state x="184" y="0" key="SettingsEditor" timestamp="1583493438190"> <state x="184" y="0" key="SettingsEditor" timestamp="1583493438190">
<screen x="0" y="0" width="1366" height="728" /> <screen x="0" y="0" width="1366" height="728" />
</state> </state>
......
public class Lab { public class Lab {
private Student[] students; private Student[] students;
private int avg; private int avg;
......
import java.util.ArrayList;
/**
* @author Amir Foroughi 9831045
* @version 1.0
*/
public class Run { public class Run {
public static void main(String[] args) { public static void main(String[] args) {
...@@ -76,7 +80,7 @@ public class Run { ...@@ -76,7 +80,7 @@ public class Run {
//what if we want to get the student array itself //what if we want to get the student array itself
students = lab.getStudents(); students = lab.getStudents();
//printing the new average because we just added std4 //printing the new average because we just added std4 although it was printed in the print method
System.out.println("The new lab average is = " + lab.getAvg()); System.out.println("The new lab average is = " + lab.getAvg());
} }
......
public class Student { public class Student {
private String firstName; private String firstName;
private String lastName; private String lastName;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment