Results 1 to 4 of 4
- 09-06-2010, 05:22 PM #1
Member
- Join Date
- Sep 2010
- Posts
- 18
- Rep Power
- 0
what is wrong wid this code??(interface)
interface applicant
{
public void details(String args[]);
}
class candidate implements applicant
{
int id;
String name,add,pos;
public void details(String args[])
{
for(int i=0;i<args.length;i++)
System.out.println("id"+args[i]+"name"+args[i]+"add"+args[i]+"pos"+args[i]);
}
}
class emp
{
public static void main(String args[])
{
candidate c=new candidate();
c.details();
}
}
- 09-06-2010, 05:26 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,422
- Blog Entries
- 7
- Rep Power
- 17
See if your candidate class has a 'details'method that doesn't take any arguments at all; the compiler already told you that it couldn't find one if you actually had read its diagostic messages. b.t.w. if you want your class 'emp' to be the entry point of your program you should make it a public class.
kind regards,
Jos
- 09-06-2010, 05:27 PM #3
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
It's not in code tags?
- 09-07-2010, 03:25 PM #4
Member
- Join Date
- Sep 2010
- Posts
- 18
- Rep Power
- 0
Similar Threads
-
What Could be Wrong with This code????
By Manfizy in forum New To JavaReplies: 9Last Post: 08-22-2010, 11:28 AM -
Need help! something wrong in my code
By novak100 in forum New To JavaReplies: 2Last Post: 11-18-2009, 11:59 PM -
what's wrong with my code? please help me...
By lovely23 in forum Java AppletsReplies: 2Last Post: 03-01-2009, 01:33 PM -
What's wrong with this code?
By Doctor Cactus in forum New To JavaReplies: 4Last Post: 11-29-2008, 05:44 PM -
what is wrong with this code
By masaka in forum New To JavaReplies: 5Last Post: 04-16-2008, 08:27 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks