⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 songstring.java

📁 mp3播放功能
💻 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 + -