#!/bin/bash

java DisplayMessage "What kind of listing would you like?" Regular Long

if [ $? -eq 0 ]; then
    ls
else
    ls -1
fi

