//  Data Structures with Java by John R. Hubbard
//  Copyright McGraw-Hill, 2001
//  Problem 1.18 on page 22


public class Pr0118
{ public static void main(String[] args)
  { Point p = new Point(3,-3);
    System.out.println("p = " + p);
    System.out.println("p.amplitude() = " + p.amplitude());    
  }
}
