Skip to content

Commit

Permalink
Merge pull request #5 from chris-cornwall/assign1
Browse files Browse the repository at this point in the history
Add Student to module class
  • Loading branch information
chris-cornwall authored Oct 11, 2017
2 parents c698861 + 3dcf678 commit 15759d4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/main/java/com/mycompany/softeng_assign1/Module.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
*/
package com.mycompany.softeng_assign1;

import java.util.ArrayList;

/**
*
* @author cristoir95
Expand All @@ -13,9 +15,9 @@ public class Module {

private String name;
private String id;
private String [] students;
private ArrayList <Student> students;

public Module(String name, String id, String [] students){
public Module(String name, String id, ArrayList <Student> students){

this.name = name;
this.id = id;
Expand All @@ -31,7 +33,7 @@ public String getId() {
return id;
}

public String[] getStudents() {
public ArrayList <Student> getStudents() {
return students;
}

Expand All @@ -43,7 +45,7 @@ public void setId(String id) {
this.id = id;
}

public void setStudents(String[] students) {
public void setStudents(ArrayList <Student> students) {
this.students = students;
}

Expand Down

0 comments on commit 15759d4

Please sign in to comment.