write a class to input 2 points by the user & check the line
maked by the points is horizontal,vertical or rectangle?
Answer Posted / murli
if (x1,y1) and (x2,y2) are two points..then line made is horizontal if (y1==y2).vertical if(x1==x2).Two points can never form a rectangle.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Is c better than java?
What is static and final keyword in java?
Can a constructor have different name than a class name in java?
What is the statements?
What is the difference between import java.util.date and java .util?
What is the difference between an interface and an abstract class?
How to invoke external process in java.
What is e java?
What are different types of inner classes ?
What is jit compiler in java?
How many bits is a float?
What is local class in java?
Which is better 64 bit or 32 bit?
What happens if I remove static from main method?
What is bitwise complement?