第十章第五题
2013-12-09 11:18
381 查看
public class Computer {
public String CPU;
public String BIOS;
public String screen;
public String disk;
public String memory;
public void show(){
System.out.println("CUP"+CPU);
System.out.println("主板"+BIOS);
System.out.println("显示器"+screen);
System.out.println("硬盘"+disk);
System.out.println("内存"+memory );
}
}
public class TestComputer {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Computer computer=new Computer();
computer.CPU="Intel";
computer.BIOS="技嘉";
computer.disk="希捷";
computer.memory="金士顿";
computer.screen="LG";
computer.show();
}
}
相关文章推荐
- UIPageControl 分页控件-IOS开发
- Hadoop HBase 伪分布式安装 配置
- Android Activity 常用功能设置(全屏、横竖屏等)
- 前台和后台,前端和后端
- EBuild-API常见问题汇总
- java中volatile关键字的含义 (转载)
- “NTLDR is missing”和”NTLDR is compressed”的解决办法
- ORACLE SEQUENCE用法
- 网络协议层次图
- Hadoop如何修改HDFS文件存储块大小
- detect memory leak using Electric Fence Malloc Debugger
- window.open打开新页面,父页面无提示自动关闭
- 第十章2、3题
- 背景建模或前景检测(Background Generation And Foreground Detection) 一
- 契约Contract(ServiceContract、OperationContract、DataContract、ServiceKnownType和DataMember)
- android中activity的生命周期
- poi生成Excel
- (转)Linux tr命令详解
- MFC中怎样字加下划线
- 将 Win32 C/C++ 应用程序迁移到 POWER 上的 Linux,第 3 部分: 信号