Search:

Type: Posts; User: Jarba

Search: Search took 0.09 seconds.

  1. Replies
    10
    Views
    1,603

    Re: Not sure where/what my error is.

    For the second one, where would I add that? When the person is created?
    Silly me, I see now :)
    Thanks, I'll test it now!
  2. Replies
    10
    Views
    1,603

    Re: Not sure where/what my error is.

    Do you have any idea how I could list all of the people created so far?
  3. Replies
    10
    Views
    1,603

    Re: Not sure where/what my error is.

    Thankyou Javapenguin! It worked, with a bit of tweaking!
  4. Replies
    10
    Views
    1,603

    Re: Not sure where/what my error is.

    public class Person {
    String forename;
    String surname;
    int age;

    public String getName(Person nameToGet) {
    return forename + " " + surname;
    }

    public Person(String createdForename,...
  5. Replies
    10
    Views
    1,603

    Not sure where/what my error is.

    I have two classes: Person and PersonDemo.
    Person holds all the methods, etc, etc, whilst PersonDemo is as named, just for a demo.
    However, PersonDemo throws up a lot of errors in my Eclipse...
Results 1 to 5 of 5