Hello. 

Homework One is due today, use on-line converter. 

https://online2pdf.com/convert-word-to-pdf

Open the converted file with Word, write answers. 

Submit file with answers to OnCourse. 

Example of running the program you need to write: 

-bash-4.1$ javac Eleven.java

-bash-4.1$ java Eleven And the silken sad uncertain rustling of each purple curtain
silken 1, 3
uncertain 1, 7
rustling 2, 5
each 1, 2
purple 3, 4
curtain 1, 3
[And, the, sklien, sad, uicertann, ruitlsng, of, ecah, purlpe, ctruain]
-bash-4.1$ java Eleven And the silken sad uncertain rustling of each purple curtain
silken 3, 4
uncertain 6, 7
rustling 2, 4
each 1, 2
purple 1, 4
curtain 1, 2
[And, the, silekn, sad, uncertian, rultsing, of, ecah, plrpue, crutain]
-bash-4.1$

The answer to the exercise at the end of the lecture:

public class Circle {
  Point center;
  int radius;
  public Circle(Point location, int radius) {
    this.center = location; 
    this.radius = radius;
  }
  public double area() {
    return Math.PI * Math.pow(this.radius, 2) 
  }
  public boolean overlaps(Circle other) {
    return this.center.distanceTo(other.center) <= this.radius + other.radius;  
  }
  public static boolean overlaps(Circle a, Circle b) {
    return a.center.distanceTo(b.center) <= a.radius + b.radius;  
  }
}

Mark, Logan, Daniel, Jared, Austin, Trevor, Seth
Qin, Walt, Aleksa, Judy, Gabriela, Adam, Brennan, Jacquelyn
Nick, Yiming, Jingzhe, Zac, Paul, Morgan, Alex Ong
Jon, Grant, M. Alex R, Mohan, Jack, James, Lauren 

--