Answer:
import java.awt.Point;
public class Line{
private Point point1, point2;
public Line(Point p1, Point p2){
point1 = p1;
point2 = p2;
}
public Point getP1(){
return point1;
}
public Point getP2(){
return point2;
}
public String toString(){
return "[( The " + point1.x + "," + point1.y + "), (" + point2.x + "," + point2.y +")]";
}
public static void main(String args[]){
Line lineObj = new Line(new Point(7,9), new Point(6,2));
System.out.println(lineObj.toString());
}
}
Explanation:
- Declare the points inside the class Line.
- Initialize the getters and setters method for the class.
- Define a toString method that returns the information in a formatted manner.
- Inside the main method, initialize an object with some values.
- Display the information by calling the toString method.
I believe the answer is B. False.
Hope this helps! ^^
Answer:
The answer to this question as follows:
1) False
2) False
3) True
Explanation:
The description of the above option as follows
- In option 1, A single character variable must be contained in one quote mark, but it is based on the alphabet, which is a specific device, and the price of a continued character varies from one device to another, that's why it is false.
- In option 2, This option is wrong because in assembly language the identifier value must not exceed the length than 247 characters.
- In option 3, It is correct because in the variable declaration the first char should be a letter, _, @ or $letter. A total of 1-247 characters. The default case is insensitive.
Answer:
Data is the correct answer
Answer:
- make a promise
- write it in a diary
- make a scrap book
- create a video
- make a picture book
I hope this helps
<h2>I know you will do great!!!</h2>