subject
Engineering, 04.04.2020 14:30 beautifu3

Public class Point { private int x; private int y; public void setx(int x) this. x = x; public void setY(int y) this. y=y; public void setXY(int x, int y) X=y; ysy; public boolean IsEqual(Point p) return ((p. x == x) && (p. y == y)); public void DisplayPoint() System. out. println("(" + x + " +X+ + y + ")"); public void movePoint(int deltax, int deltay) {!! 'x' is increased by deltax and y is increased by deltay public void SetLocation(Point P) {//make point to have the specified location P. public static void main(String[] args) { // TODO Auto-generated method stub Point P1 = new Point(); Point P2 = new Point(); P1.setx(5); P1.setY(6); P2.setx(5); P2.setY(6); System. out. println(P1.IsEqual(P2)); P2.setXY(3,4); System. out. println(P1.IsEqual(P2)); Given the class 'Point' which has two member variables x, and y. What are x and y for Point object P1 after the end of the main method ? (Pay close attention to the setXY method) x=6, y=5 Ox=6, y= 6 x=5, y= 6 x=5, y= 5

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 08:10
Which of the following is an easy way to remember the modified “x” tire rotation? a. nondrive wheels straight, cross the drive wheels b. drive wheels straight, cross the nondrive wheels c. drive wheels crossed, nondrive wheels straight d. drive wheels crossed, nondrive wheels crossed
Answers: 1
question
Engineering, 04.07.2019 18:10
Different types of steels contain different elements that alter the characteristics of the steel. for each of the following elements, explain what the element does when alloyed with steel.
Answers: 2
question
Engineering, 04.07.2019 18:20
An engine runs on the ideal diesel cycle. the cycle has a compression ratio of 20 and a cutoff ratio of 2. the highest temperature in the cycle is 1200 k. if the heat into the system is 300 kj/kg of working fluid and using variable specific heats determine the work produced per mass of working fluid
Answers: 3
question
Engineering, 04.07.2019 18:20
A3-mm-thick panel of aluminum alloy (k 177 w/m-k, c 875 j/kg-k and ? = 2770 kg/m) is finished on both sides with an epoxy coating that must be cured at or above t,-150°c for at least 5 min. the production line for the curing operation involves two steps: (1) heating in a large oven with air at ts,0-175°c and a convection coefficient of h, 40 w/m2. k, and (2) cooling in a large chamber with air at 25°c and a con- vection coefficient of he 10 w/m2.k. the heating portion of the process is conducted over a time interval te which exceeds the ime required to reach 150°c by 5 min (h = r + 300 s). the coating has an emissivity of ? = 0.8, and the temperatures of the oven and chamber walls are 175 and 25°c, respectively. if the panel is placed in the oven at an initial temperature of 25°c and removed from the chamber at a safe-to-touch tempera ture of 37°c, what is the total elapsed time for the two-step curing operation?
Answers: 3
You know the right answer?
Public class Point { private int x; private int y; public void setx(int x) this. x = x; public void...
Questions
question
History, 20.08.2019 08:10
question
Mathematics, 20.08.2019 08:10
question
Mathematics, 20.08.2019 08:10
Questions on the website: 13722363