Switch
Hi,
I have a client/server program.
On the client side I have set up ActionListener initiated buttons to send a letter and the data in a field to the client (on the client side it looks like this - EName).
On the server side I have a number of methods that look similar to this:
switch(clientLine.charAt(0))
{
case'E':
{
String staffName = (String)emails.get(clientLine);
pw.println(staffName);
break;
}
The intention is to retrieve the name of a staff member from a server side hashtable called emails and send it back to the client.
Any help or suggestion on the correct syntax for this method would be very much appreciated.

