summaryrefslogtreecommitdiff
path: root/src/Q5/ComputeIntellect.java
diff options
context:
space:
mode:
authormo <mo.khan@gmail.com>2019-07-13 13:55:21 -0600
committermo <mo.khan@gmail.com>2019-07-13 13:55:21 -0600
commita76b31a8639190c6e98fefc0e62e42b937501f94 (patch)
tree12bd163a8f80cc0cdaa472430a9fb902c08fe411 /src/Q5/ComputeIntellect.java
parente5aefc5e25159ad6f8ce2a08e754b8ed2f5c546f (diff)
add description of the code
Diffstat (limited to 'src/Q5/ComputeIntellect.java')
-rw-r--r--src/Q5/ComputeIntellect.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/Q5/ComputeIntellect.java b/src/Q5/ComputeIntellect.java
index 0ebf614..68db941 100644
--- a/src/Q5/ComputeIntellect.java
+++ b/src/Q5/ComputeIntellect.java
@@ -53,11 +53,9 @@ public class ComputeIntellect {
return this.undergraduate;
}
- /**
- * Tallys the # of citizens with different educational qualifications.
- */
+ /** Tallys the # of citizens with different educational qualifications. */
public void distributionOfQualification(Citizen[] citizens) {
- for (Citizen citizen : citizens) {
+ for (Citizen citizen : citizens)
switch (citizen.getEducationalQualification()) {
case Citizen.DOCTORATE:
this.doctorate++;
@@ -72,6 +70,5 @@ public class ComputeIntellect {
this.highschool++;
break;
}
- }
}
}