當我在 IntelliJ 或 blueJ 之外的任何其他想法中創建一個新的 .java 類時,它只是從
public Class app {
}
有沒有辦法將它設定為使用不同的東西打開,比如像這樣的 MVC 架構模板?
public class App{
private int x;
/**
* Constructor for objects of class App
*/
public App()
{
}
/**
* An example of a method - replace this comment with your own
*
* @param y a sample parameter for a method
* @return the sum of x and y
*/
public int sampleMethod(int y)
{
// put your code here
return x y;
}
}
uj5u.com熱心網友回復:
您可以在Preferences |下編輯 Java Class 模板。編輯 | 檔案和代碼模板 > 檔案 > 類

這是描述該功能的檔案頁面
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/462659.html
