printcommand.java
来自「使用java rmi编写的一个议程服务系统」· Java 代码 · 共 88 行
JAVA
88 行
package agendaClient;
/**
* 打印系统的操作命令格式
* @author Crise.Lee
* @version 1.0
*/
public class printCommand {
/**
* 打印系统的命令格式
*/
public static void printCommandFormat()
{
System.out.println("");
System.out.println(" 本系统的命令格式 ");
System.out.println();
System.out.println(" 1. java client [host] [port] register [username] [password]");
System.out.println(" 2. java client [host] [port] add [username] [password] [other] [startTime] [endTime] [meetingTitle]");
System.out.println(" 3. java client [host] [port] query [username] [password] [startTime] [endTime] ");
System.out.println(" 4. java client [host] [port] delete [username] [password] [meetingTitle]");
System.out.println(" 5. java client [host] [port] clear [username] [password]");
System.out.println("");
}
/**
* 打印用户注册的命令格式
*/
public static void printRegisterFormat()
{
System.out.println("***********************************************************");
System.out.println("***********************************************************");
System.out.println(" 系统用户注册的命令格式 ");
System.out.println();
System.out.println(" java client [host] [port] register [username] [password]");
System.out.println("***********************************************************");
}
/**
* 打印添加会议的命令格式
*/
public static void printAddFormat()
{
System.out.println("***********************************************************");
System.out.println("***********************************************************");
System.out.println(" 系统添加会的议命令格式 ");
System.out.println();
System.out.println(" java client [host] [port] add [username] [password] [other] [startTime] [endTime] [meetingTitle]");
System.out.println("***********************************************************");
}
/**
* 打印查询会议的命令格式
*/
public static void printQueryFormat()
{
System.out.println("***********************************************************");
System.out.println("***********************************************************");
System.out.println(" 系统查询会议的命令格式 ");
System.out.println();
System.out.println(" java client [host] [port] query [username] [password] [startTime] [endTime] ");
System.out.println("***********************************************************");
}
/**
* 打印删除会议的命令格式
*/
public static void printDeleteFormat()
{
System.out.println("***********************************************************");
System.out.println("***********************************************************");
System.out.println(" 系统删除会议的命令格式 ");
System.out.println();
System.out.println(" java client [host] [port] delete [username] [password] [meetingTitle]");
System.out.println("***********************************************************");
}
/**
* 打印清除用户所有会议的命令格式
*/
public static void printClearFormat()
{
System.out.println("***********************************************************");
System.out.println("***********************************************************");
System.out.println(" 系统清楚会议的命令格式 ");
System.out.println();
System.out.println(" java client [host] [port] clear [username] [password]");
System.out.println("***********************************************************");
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?