I have started learning java now. So, I decided to practise a bit at home. For that I downloaded and installed JDK 1.5 on my system.
I am still on basics of java as I've just began. I compiled and ran one-two program without problems. But, when I come to the program below, I get an error code.
Here the program
And here the error message I get
Also, can anyone suggest me a good, free GUI application for java pragramming eg. Jcreator, which I got but it uses too much memory.
I am still on basics of java as I've just began. I compiled and ran one-two program without problems. But, when I come to the program below, I get an error code.
Here the program
class Temp
{
static int x=10;
public static void main(String agrs[])
{
Temp t = new Temp();
t.show();
Temp t1 = new Temp();
t1.x=20;
t1.show();
}
}
And here the error message I get
This program ran fine in my classes on windows server 2000 and JDK1.3.Temp.java: In class 'Temp':
Temp.java: In method 'Temp.main(java.lang.String[])':
Temp.java:7: error: Can't find method ‘show()’ in type ‘Temp’.
t.show();
^
Temp.java:10: error: Can't find method ‘show()’ in type ‘Temp’.
t1.show();
^
2 errors
Also, can anyone suggest me a good, free GUI application for java pragramming eg. Jcreator, which I got but it uses too much memory.