Skip to content

Instantly share code, notes, and snippets.

@joshkehn
Created October 20, 2011 21:05
Show Gist options
  • Select an option

  • Save joshkehn/1302383 to your computer and use it in GitHub Desktop.

Select an option

Save joshkehn/1302383 to your computer and use it in GitHub Desktop.
public class Student
{
String name;
int age;
public Student (String name, int age)
{
this.name = name;
this.age = age;
}
public String toString ()
{
return this.name + " is " + this.age + " years old.";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment