Hello,
I think I have a problem with the getObject() method in java.
Here is my code, please check it and if you find any problems then please guide me with the correct.
Code:
Public class sub extends Element
{
Public sub (String nm, String des)
{
great(nm, des);
}
Public String getName()
{
return great.nm;
}
}
I try this with my code, but it is not working
Code:
Object obj = Player.getObjet("Diamond");
System.out.System.out.println(obj.getName());
System.out.System.out.println(obj.getDescription());
Any help on this is appreciated. Thanks in advance.
Bookmarks