Sprinter - return country public void setCountry(String...

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

{[ snackBarMessage ]}

Ask a homework question - tutors are online