about summary refs log tree commit diff
path: root/usth/ICT2.2/labwork/3/Java/NameCardTest.java
blob: ed66343b4d1f65f290f7e02fccbed74735fe64b1 (plain) (blame)
1
2
3
4
5
6
7
8
9
class NameCardTest
{
  public static void main(String... args)
  {
    NameCard card = new NameCard("Foobar Baz", "420-69", "foo@bar.baz");
    System.out.printf("Name: %s\nPhone: %s\nEmail: %s\n",
                      card.getName(), card.getPhone(), card.getEmail());
  }
}