Sprinter - { return country; } public void...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
public class Sprinter { private String name; private String country; p public Sprinter (String name, String country) { this.name=name; this.country=country; } public String getName() { return name; } public void setName( String name) { this.name= name; } public String getCountry()
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { return country; } public void setCountry(String country) { this.country = country; } public String info() { String info = ""; info+="Name"+ this.getName()+"\t"+"Country"+this.getCountry(); return info; } }...
View Full Document

This note was uploaded on 02/06/2010 for the course CSE CIS3023 taught by Professor Seema during the Spring '10 term at Florida College.

Ask a homework question - tutors are online