📄 opencommand.java
字号:
package com.javapatterns.command.book;
public class OpenCommand implements Command
{
//this would be used as a receiver, if we had one
// private Application _application;
//this would have been the constructor
/* public OpenCommand(Application a)
{
_application = a;
}
*/
public void execute()
{
/* String docName = AskUser();
if (docname != null)
{
Document docOpen = new Document (docName);
_application.add(docOpen);
_application.open();
}
*/
System.out.print("System requested for document...");
System.out.println("user enters name of document");
System.out.println("System has opened document. \n");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -