【文件属性】:
文件名称:Android实验动态生成数
文件大小:379KB
文件格式:ZIP
更新时间:2018-06-12 10:23:16
动态生成数
动态生成数的运用
public int compare_130(int a,int b)
{
int c;
c=a>=b?a:b;
return c;
}
public void onClick(View v) {
if (service_130 == null) {
labelView.setText("未绑定服务");
return;
}
int a= Math.round(Integer.parseInt(edit1.getText().toString().trim()));
int b= Math.round(Integer.parseInt(edit2.getText().toString().trim()));
// long a = Math.round(Math.random() * 100);
// long b = Math.round(Math.random() * 100);
int result = service_130.compare_130(a,b);
// long result = mathService.Add(a,b);
String msg = String.valueOf(a) + " compare with " + String.valueOf(b)
+ ",the " + String.valueOf(result)+" is bigger";
labelView.setText(msg);
}
});
【文件预览】:
11203090130_wuxiao_shiyan4
----11203090130_wuxiao_shiyan4.doc(274KB)
----实验4-后台服务.ppt(18KB)
----wx0402()
--------bin()
--------res()
--------assets()
--------gen()
--------proguard.cfg(1KB)
--------.settings()
--------src()
--------.project(843B)
--------.classpath(364B)
--------project.properties(361B)
--------AndroidManifest.xml(810B)
----wx0401()
--------bin()
--------res()
--------assets()
--------gen()
--------proguard.cfg(1KB)
--------.settings()
--------src()
--------.project(842B)
--------.classpath(364B)
--------project.properties(361B)
--------AndroidManifest.xml(810B)