Movie Class – Java

package moviefindertest.springxml;

public class Movie {    

      public Movie() {}

      public Movie(String title, String director) {
            this.title = title;
            this.director = director;
      }

      private String title;

      public String getTitle() {
            return title;
      }

      public void setTitle(String title) {
            this.title = title;
      }
      
      private String director;

      public String getDirector() {
            return director;
      }

      public void setDirector(String director) {
            this.director = director;
      }

      @Override
      public String toString() {
            return "Movie [title=" + title + ", director=" + director + "]";
      }

}
 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s