Java programming discussion question

Need this done within the next two hours..  Java Programming.