import java.util.Scanner;
public class rectangle
{
public static void main (String[] args)
{
double int x1 = 0;
double int x2 = 0;
double int x3 = 0;
double int y1 = 0;
double int y2 = 0;
double int y3 = 0;
You shouldn't end "if" statements with semicolons. Even without the semicolon, the distanceX variables need to be defined BEFORE the "if". And the "else" is supposed to be after the "if". Probably you want something like this (starting at line 53):
Distance1=...;
Distance2=...;
Distance3=...;
Area=...;
//You wrongly used "distance 1" instead of a variable name below.
if(distance3>distance1...)
{
System.out.println("This is a rectangle.");
}
else
{
System.out.println("This is not a rectangle.");
} [ theymos's advice column | Ask theymos A Question ]
Attention: NOTHING on this site may be reproduced in any fashion whatsoever without explicit consent (in writing) of the owner of said material, unless otherwise stated on the page where the content originated. Search engines are free to index and cache our content. Users who post their account names or personal information in their questions have no expectation of privacy beyond that point for anything they disclose. Questions are otherwise considered anonymous to the general public.