package ru.job4j.condition;

 /**
  *@author Nikita Zenkin.
  *@since 19.05.2017.
  *@version 1.
 */

public class Point {

   /**
	* @param x is coordinate of point.
   */

   private int x;

   /**
	* @param y is coordinate of point.
   */

   private int y;

   /**
    * Constructor with 2 params(coordinates).
	* @param x is x int coordinate.
	* @param y is y int coordinate.
   */

   public Point(int x, int y) {
      this.x = x;
      this.y = y;
  }

   /**
    * Method to get argument x.
	* @return int.
   */

  public int getX() {
      return this.x;
  }

   /**
    * Method to get argument y.
	* @return int.
   */

  public int getY() {
     return this.y;
  }

  /**
   * Method that define is point on line.
   * @return boolean.
   * @param a is int x coordinate.
   * @param b is int y coordinate.
  */

  public boolean is(int a, int b) {
	  return (a * getX() + b) == getY();
  }
}
@@ -89,16 +89,18 @@
 rsion 1.
+1.
 %0A */%0A%0Apu
@@ -872,22 +872,22 @@
 rn (a * 
-getX()
+this.x
  + b) ==
@@ -887,21 +887,21 @@
 + b) == 
-getY()
+this.y
 ;%0A  %7D%0A%7D

task 188 v1.1