我可以在BlueJ上编译它,它说没有语法错误。但是当我点击窗口显示我的输出时,它不在那里。我看不到窗户。有人知道我的代码可能有什么问题吗?TIme程序没有输出
class Time {
// declaring instance variables
int hour, minute;
double second;
public Time() {
this.hour = 0;
this.minute= 0;
this.second = 0.0;
} // end constructor
} // end class
你能解释什么样的输出是类类声明的代码吗? –
你如何运行这段代码? – Rehman