For my first
Java assignment ever (due in a couple hours), I have to create this:
1. Write a java class Student (file: Student.java) that represents a student. The class should have student name, student email as instance variables. It should also contain a no-argument constructor that assigns both name and email with value "UNASSIGNED". It should also implement 5 methods:
-- getEmail: returns the email of the student,
-- getName: returns the name of the student,
-- setEmail: sets the email of the student to given parameter value, and
-- setName: sets the name of the student to given parameter value.
-- toString: print Details of the object created (in this case the name and the email)
2. Write a java class Tester (file: Tester.java). In this class you create/construct a student object. And print the object info by calling toSting() method.
~~~
This is what I've created so far, but I'm getting errors ("Non-static method cannot be referenced from static content") and I don't really know what to do next. Any help would be greatly appreciated!
public class Student