Class Dot
- java.lang.Object
-
- Dot
-
public class Dot extends Object
A simple Dot class for IC211 Lab06
-
-
Constructor Summary
Constructors Constructor Description Dot(int r, int c)
Dot Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
decCol()
Decrements the column value of the Dotvoid
decRow()
Decrements the row value of the Dotvoid
incCol()
Increments the column value of the Dotvoid
incRow()
Increments the row value of the Dotstatic void
main(String[] args)
A main to test Dot functionality.String
toString()
Returns the string representation of the Dot as: row + " " + col
-
-
-
Method Detail
-
incRow
public void incRow()
Increments the row value of the Dot
-
decRow
public void decRow()
Decrements the row value of the Dot
-
incCol
public void incCol()
Increments the column value of the Dot
-
decCol
public void decCol()
Decrements the column value of the Dot
-
toString
public String toString()
Returns the string representation of the Dot as: row + " " + col
-
main
public static void main(String[] args)
A main to test Dot functionality. To display the Dots, send the output of this program into Plotter.jar using the following:
java Dot | java -cp Plotter.jar Plotter- Parameters:
args
- not used
-
-