?? opencommand.java
字號:
package com.javapatterns.command.document;
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 + -