public void commandJoinChannel(String channel){
  if (channel == null) {
    g.printLine("A channel to join needs to be specified.");
  }
 else {
    channel=StringUtil.toLowerCase(channel.trim());
    c.joinChannel(channel);
  }
}

public void commandJoinChannel ( String channel ) { if ( channel == null ) { g . printLine ( "A channel to join needs to be specified." ) ; } else { channel = StringUtil . toLowerCase ( channel . trim ( ) ) ; c . joinChannel ( channel ) ; } }
command to join channel entered .
