Hi there... I'm teaching myself Java, and I'm trying to understand interfaces.
Here's a bit of code I'm playing with, and I'm wondering what I'm doing wrong
Can anyone point me in the right direction?Code:public class StudentDemo
{
public void main(String[] args)
{
Student stu = new Student();
stu.setName("wallace");
stu.setYearOfCommencement(1101);
}
public class Student implements StudentSpecification
{
String stuName = null;
int stuYear = 0;
public void setName(String name);
{
stuName = name;
}
public void setYearOfCommencement(int year);
{
stuYear = year;
}
public String getName()
{
return stuName;
}
public int getYearOfCommencement();
{
return stuYear;
}
}
interface StudentSpecification
{
// Change the name of the student
void setName(String name);
// Change the year of commencement
void setYearOfCommencement(int year);
// Get the name
String getName();
int getYearOfCommencement();
}
}
I'm finding alot of information online, but the examples the use never pass arguments like mine does.

