仪器社区

JAVA测试类怎么写,求大神指导下!

栺尖煙愺味 2015-05-22
题目:1、编写电池类(Cell):具有品牌属性,可以续电 2、编写测试类(TestCell) public class CELL { String brond; public void show(){ System.out.println("电池品牌:"+brond); } public static void main... 题目:1、编写电池类(Cell):具有品牌属性,可以续电 2、编写测试类(TestCell) public class CELL { String brond; public void show(){ System.out.println("电池品牌:"+brond); } public static void main(String[] args) { CELL bro=new CELL(); bro.brond="双鹿"; bro.show(); } } 测试类 应该怎么写?
评论
全部评论
237236767
public class TestClass {
public static void main(String[] args) {
Hello hello = new Hello();
String str = hello.getInfo();
System.out.println(str);
}
}
20 0 2015-05-23 0条评论 回复
您可能感兴趣的社区主题
加载中...
发布 评论