Menu: Difference between revisions
Content added Content deleted
(Task modified to state action on input of non integer.) |
m (formatting of external link) |
||
Line 10: | Line 10: | ||
For test purposes use the four phrases: 'fee fie', 'huff and puff', 'mirror mirror' and 'tick tock' in a list. |
For test purposes use the four phrases: 'fee fie', 'huff and puff', 'mirror mirror' and 'tick tock' in a list. |
||
Note: This task is fashioned after the action of the |
Note: This task is fashioned after the action of the [http://www.softpanorama.org/Scripting/Shellorama/Control_structures/select_statements.shtml Bash select statement]. |
||
=={{header|Java}}== |
=={{header|Java}}== |
||
<lang java5>public static String select(List<String> list, String prompt){ |
<lang java5>public static String select(List<String> list, String prompt){ |