aboutsummaryrefslogtreecommitdiff
path: root/examples/ListPeople.java
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ListPeople.java')
-rw-r--r--examples/ListPeople.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/ListPeople.java b/examples/ListPeople.java
index 78924305..580f7ac2 100644
--- a/examples/ListPeople.java
+++ b/examples/ListPeople.java
@@ -27,6 +27,9 @@ class ListPeople {
case WORK:
System.out.print(" Work phone #: ");
break;
+ default:
+ System.out.println(" Unknown phone #: ");
+ break;
}
System.out.println(phoneNumber.getNumber());
}