I am trying to implement a class in java. I have to create a javadoc from the code I am writing. However, I am having trouble getting the Field Summary section to show up in the javadoc. Thanks in advance. Sorry if this isn't posted correctly it's my first post.
Here is my Code:
package linesegmenttesterapp;
public class LineSegment
{
/**
* The X coordinate of the start point of the line segment.
*/
private double x1;
/**
* The X coordinate of the end point of the line segment.
*/
private double x2;
/**
* The Y coordinate of the start point of the line segment.
*/
private double y1;
/**
* The Y coordinate of the end point of the line segment.
*/
private double y2;
/**
* Constructs and initializes a Line with coordinates (0,0)->(0,0).
*/
public LineSegment()
{
x1 = 0;
y1 = 0;
x2 = 0;
y2 = 0;
}
/**
* Constructs and initializes a Line2D from the specified coordinates.
* @param x1Val, y1Val, x2Val, y2Val
*/
public LineSegment(double x1Val, double y1Val, double x2Val, double y2Val)
{
x1 = x1Val;
y1 = y1Val;
x2 = x2Val;
y2 = y2Val;
}
}