?? songstring.java
字號:
package Function;
/**
* The class is designed to set and get the name and the
* path of a song for other classes and methods.
*
* @author DuXiaojing
*
*/
public class SongString {
private String name;
private String path;
/**
*
* @return Returns the name of a song
*/
public String getName() {
return name;
}
/**
* Set the name of a song
*
* @param name
*/
public void setName(String name) {
this.name = name;
}
/**
*
* @return Returns the path of a song
*/
public String getPath() {
return path;
}
/**
* Set the path of a song
*
* @param path
*/
public void setPath(String path) {
this.path = path;
}
public SongString(String name, String path) {
super();
this.name = name;
this.path = path;
}
/**
* @return Returns the name string
*/
public String toString(){
return getName();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -