用JAVA作手机代码,怎么做?
用JAVA用手机代码,要下歌、放歌、换歌、还要充电,不知道怎么办了,请教高手

程序代码:package mobile;
import java.util.*;
public class Mobine {
String name; // 牌子
String color; // 颜色
String type; // 类型
String song; // 歌曲
String play; // 播放
double price; // 价格
String persion;
Scanner input = new Scanner(System.in);
// 无参的构造方法
public Mobine() {
// 可以什么都不要写
}
// 有参的构造方法
public Mobine(String tempName, String tempColor, String tempType,
String tempSong, String tempPlay, double tempPrice) {
this.name = tempName;
this.color = tempColor;
this.type = tempType;
this.song = tempSong;
this.play = tempPlay;
this.price = tempPrice;
}
// 下载音乐类
public void downMusic() {
System.out.print("输入你想下载的歌曲: ");
String songs = input.next();
this.song += songs;
System.out.println("你下载的歌是: " + songs + "\n");
}
// 播放音乐类
public void playMusic() {
System.out.print("输入想播放的歌曲: ");
String plays = input.next();
this.play += plays;
System.out.println("正在播放: " + plays + "\n");
}
// 查询联系人类
public String persion() {
System.out.println("输入名字: ");
String persions = input.next();
this.persion=persions;
if (persions.equals("张三")) {
return "正在拨打: 15973818888";
} else if (persions.equals("李四")) {
return "正在拨打: 15973818887";
} else {
return "查无此人";
}
}
package mobile;
public class TextMobile {
/**
* @param args
*/
public static void main(String[] args) {
// TODO 自动生成方法存根
Mobine sc=new Mobine();
sc.downMusic();
sc.playMusic();
System.out.println(sc.persion());
}
}
正在冲电的话,自己做做看
