一个简单的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 新手求助,为什么输入admin还是不能验证正确。 如何 正则表达式 去值 Java构造函数调用问题,求详解 求解决apache.exe问题? 学习java必看 多层继承的问题 请教高手!!两个类在一起怎么编译?? 转换成/ MD5 加密算法求助。 汉字的问题:我用纯java把汉字从库里取出来显示,代码如下:String dbstr1= new String(ls.getBytes("ISO8859_1"),"gb2312"),可一部分字 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