public class NestTest
{
    public static void main (String[] args)
    {
	double x = .3; double y = 1.0/10.0 +1.0/10.0 +1.0/10.0; int z = 1;

	if (x == y)
	    if (y == z)
		{
		    System.out.println("all three values the same");
		}
	    else
		{
		    System.out.println("y is not equal to z");
		}
	else
	    System.out.println("x is not equal to y. x is "+x+
			       " and y is "+y);
    }
}

