
正文
摩托罗拉JAVA代码,摩托罗拉自带的java游戏
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
JAVA 代码错误,求大神解救
motooperation和car实现了继承关系没?你的MotoOperation对象跟Car对象没有继承关系,可以加个强制类型转换Car car = new Car(); moto = (MotoOperation) car.但是这样运行运出错的,因为他们之间没有继承关系。
相关问答
Q1: 求java代码。关于将一个集合按照要求分解成两个集合
//Platform.java
public class Platform {
/**
* @author lusong
*/
private String brandName;
private String model;
public Platform(String bString,String mString) {
brandName=bString;
model=mString;
}
public String getBrandName() {
return brandName;
}
public String getModel(){
return model;
}
}
//ShiXian.java,其中的getList()方法返回你要求的东东
//不知道合不合你的胃口
import java.util.*;
public class ShiXian {
ArrayListPlatform PlatformList=new ArrayListPlatform();
//用于包含型号的名称,用于验证重复,在getLIst方法中使用,因为内置类不能访问方法的局部变量所有在此定义方法中的变量
ListString arrayList=new ArrayListString();
public ShiXian() {
//向该集合中添加成员,型号之间用逗号隔开
PlatformList.add(new Platform("诺基亚","7210,5530,2120"));
PlatformList.add(new Platform("摩托罗拉","V3,L6"));
PlatformList.add(new Platform("诺基亚","N70,N73,N95"));
PlatformList.add(new Platform("摩托罗拉","V4,L7"));
PlatformList.add(new Platform("摩托罗","V4,L7"));
PlatformList.add(new Platform("摩","V4,L7"));
PlatformList.add(new Platform("摩","V4,L7"));
//你可以随意添加成员,注意型号之间用逗号隔开
}
//你的要求是返回一个包含所有品牌的List,每个List项为一个包含型号的List
public ListArrayListString getList(){
//用于最终返回结果的List
ListArrayListString list=new ArrayListArrayListString(){
//重写toString()方法,便于显示手机名称
@Override
public String toString() {
int i=0;
// TODO Auto-generated method stub
StringBuilder stringBuilder=new StringBuilder();
for (Iterator iterator = this.iterator(); iterator.hasNext();) {
ArrayListString arrayList1 = (ArrayListString) iterator.next();
stringBuilder.append(arrayList.get(i));
stringBuilder.append("的型号为:");
i=i+1;
stringBuilder.append(arrayList1.toString());
}
return stringBuilder.toString();
}
};
for (Iterator iterator = PlatformList.iterator(); iterator.hasNext();) {
Platform platform=(Platform)iterator.next();
if (arrayList.contains(platform.getBrandName())) {
//该手机已经存在,只用添加型号,并且验证是否重复
String[] strings=platform.getModel().split(",");
ArrayListString arrayList3=list.get(arrayList.indexOf(platform.getBrandName()));
for (int i = 0; i strings.length; i++) {
if (!arrayList3.contains(strings[i])) {
arrayList3.add(strings[i]);
}
}
}
else {
//该手机还不存在,要添加该手机,并添加型号
arrayList.add(platform.getBrandName());
ArrayListString arrayList3=new ArrayListString();
String[] strings=platform.getModel().split(",");
for (int i = 0; i strings.length; i++) {
arrayList3.add(strings[i]);
}
list.add(arrayList3);
}
}
return list;
}
public static void main(String[] args) {
System.out.println(new ShiXian().getList());
}
}
Q2: 摩托罗拉进入工程模式代码
071082
v860手机工程模式有二个口令分别进入不同的选项,分别是8378*#再按OK3次和8379*#再按OK3次
要解除遗忘的手机密码,首先,待机时输入8378*#再按OK3下进入v860手机工程模式:
NAM Setting
Channel Fix
ALT Mode
Set Vocoder
Test Call
Loopback Test
otapa set
无UIM卡
IMAP Enable
Java UA-String
然后选择第一项,输入密码071082,进入下一级菜单:Nam1
Common
选择第二项COMMON进入。
Q3: 摩托罗拉v3c如何安装java程序(通过数据线)
V3c应该是个CDMA的手机目前因为CDMA手机都是高通的BREW平台,一般用户是不能使用数据线向其中传输游戏的。游戏的生产场商在游戏生产出来后的测试过程中会使用BREW 的SDK中的软件向手机传输,但下载这个SDK也是需要向高通申请帐号和权限的。另外,由于CDMA手机的平台特殊性,在传输的过程中还要针对你的手机向高通申请针对你手机的专用SIG码,如果没有这个SIG码传完了游戏也是玩不了的。总之,如果你的这个手机是CDMA的话,那么通过数据线传输游戏的可以的,只不过特别的麻烦而以,不过你要是把上述的工作都准备好了,那么以后每次传游戏就比较容易了。`
Q4: 谁能知道摩托罗拉手机的按键代码啊?
?xml version="1.0" encoding="UTF-8" standalone="yes" ?
- JavaMagicConfig
- KeyCodes TargetDevice="MOTO"
Const KeyName="LSOFT" Value="-30" /
Const KeyName="RSOFT" Value="-31" /
Const KeyName="UP" Value="-1" /
Const KeyName="DOWN" Value="-2" /
Const KeyName="LEFT" Value="-3" /
Const KeyName="RIGHT" Value="-4" /
Const KeyName="FIRE" Value="-5" /
Const KeyName="NUM1" Value="49" /
Const KeyName="NUM2" Value="50" /
Const KeyName="NUM3" Value="51" /
Const KeyName="NUM4" Value="52" /
Const KeyName="NUM5" Value="53" /
Const KeyName="NUM_6" Value="54" /
Const KeyName="NUM7" Value="55" /
Const KeyName="NUM8" Value="56" /
Const KeyName="NUM9" Value="57" /
Const KeyName="NUM0" Value="48" /
Const KeyName="STAR" Value="42" /
Const KeyName="POUND" Value="35" /
Const KeyName="CUSTOM1" Value="0" /
Const KeyName="CUSTOM2" Value="0" /
Const KeyName="CUSTOM3" Value="0" /
Const KeyName="CUSTOM4" Value="0" /
Const KeyName="CUSTOM5" Value="0" /
Const KeyName="CUSTOM6" Value="0" /
/KeyCodes
/JavaMagicConfig
确定-30 返回-31
上-1
中-5
下-2
左-3
右-4
1 49
2 50
3 51
4 52
5 53
6 54
7 55
8 56
9 57
0 48
* 42
# 35







