文件名称:TEST1
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2013-11-05
- 文件大小:
- 3kb
- 下载次数:
- 0次
- 提 供 者:
- 小**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
阅读下面的程序,在main()方法里添加语句完成如下功能:
①创建一个MyValue类的对象myValue.
②为myValue对象中的value域赋值10.
③使用getVaule()方法获得myValue对象中的数据并将它打印在屏幕上.
class MyValue {
private int value
public void setValue(int x) {
Value = x
}
public int getValue( ){
return value
}
}
public class UseValue {
public static static void main(String args[ ]) {
}
}
-Read the following procedures, the main () method to add the following statement completion functions: 鈶?create an object of class MyValue myValue. 鈶?The value is myValue object domain assignment 10. 鈶?Use getVaule () method to obtain the data and object myValue print it on the screen. class MyValue {private int value public void setValue (int x) {Value = x } public int getValue () {return value }} public class UseValue {public static static void main (String args []) {}}
①创建一个MyValue类的对象myValue.
②为myValue对象中的value域赋值10.
③使用getVaule()方法获得myValue对象中的数据并将它打印在屏幕上.
class MyValue {
private int value
public void setValue(int x) {
Value = x
}
public int getValue( ){
return value
}
}
public class UseValue {
public static static void main(String args[ ]) {
}
}
-Read the following procedures, the main () method to add the following statement completion functions: 鈶?create an object of class MyValue myValue. 鈶?The value is myValue object domain assignment 10. 鈶?Use getVaule () method to obtain the data and object myValue print it on the screen. class MyValue {private int value public void setValue (int x) {Value = x } public int getValue () {return value }} public class UseValue {public static static void main (String args []) {}}
(系统自动生成,下载前可以参看下载内容)
下载文件列表
第一题\.classpath
......\.project
......\.settings\org.eclipse.jdt.core.prefs
......\bin\test\MyValue.class
......\...\....\UseValue.class
......\src\test\MyValue.java
......\...\....\UseValue.java
......\bin\test
......\src\test
......\.settings
......\bin
......\src
第一题