一个简单的java问题,求解,急。 class Person应该声明为public ,即public class Person 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 char breathe->String breathe 你输入的都是字符串,怎么可以定义成CHAR? 问题在这里, p1.breathe="good"; p2.breathe="poll";怎么改呢。 class Person{ int age; char breathe; //使用: String breathe; void shout() { System.out.println("oh,my god! my age is" +age); System.out.println("oh,my god! my breathe is" +breathe); }} 1、breathe的类型与赋值不符。2、class TestPerson声明为public,文件名也应为TestPerson.java 已知汉字如何求内码?已知内码如何求汉字?(求代码) 23分59秒59秒加1秒问题,请高手支招 如何在表格中加入JButton对象和为什么下面简短代码并不能显示columnNames数组的内容 文本框上的ActionEvent事件的小问题 想用java做个截取屏幕的程序,不知道该怎么做? 请教几个困惑我的几个的问题:多谢! 帮我看看错哪 jdbc 连接sql server2000 错误<未与信任 SQL Server 连接相关联> private好像也不安全啊 这代码什么意思啊 Java中ToolBar的使用方法? JAVA开发工具
p1.breathe="good";
p2.breathe="poll";
怎么改呢。
{
int age;
char breathe; //使用: String breathe;
void shout()
{
System.out.println("oh,my god! my age is" +age);
System.out.println("oh,my god! my breathe is" +breathe);
}
}
2、class TestPerson声明为public,文件名也应为TestPerson.java