Commit 12a8baf0 authored by nelimajain2511's avatar nelimajain2511

Update EngineerFirm.java

parent 0b57b885
......@@ -15,8 +15,8 @@ public class EngineerFirm {
}
}
public static void printMessages(double salaryAmount, String salarySpecification, String profession) {
switch (salarySpecification) {
public static void printMessages(double salaryAmount, String salarySpecs, String profession) {
switch (salarySpecs) {
case "max":
System.out.print("Maximum salary amongst " + profession);
System.out.printf(" is %d", (int) salaryAmount);
......
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