首页 文章 ClassObject Field.java80p10_20

ClassObject Field.java80p10_20

2024-10-20 13:12  浏览数:118  来源:叶问    

package cc.openhome;
class Clothes{
String color;
char size;
}
public class Field{
publics static void main(String[] args){
Clothes sun = new Clothes();
Clothes spriting = new Clothers();
sun.color = "red";
sun.size = 's';
spring.color = "green";
spring.size = 'M';
System.out.printf("sun ( %s, %c) %n", sun.color, sun.size);
System.out.printf("spring ( %s , %s)%n", spring.color, spring.size);
}
}



声明:以上文章均为用户自行添加,仅供打字交流使用,不代表本站观点,本站不承担任何法律责任,特此声明!如果有侵犯到您的权利,请及时联系我们删除。

字符:    改为:
去打字就可以设置个性皮肤啦!(O ^ ~ ^ O)