Source code for ORMilesMonthsExample.java:

public class ORMilesMonthsExample
{
	public static void main(String args[])
	{
		// ORMilesMonthsExample
		int miles = 2500;
		int months = 5;
		if ((miles > 3000) || (months > 3))
		{
			System.out.println("Your car warranty has expired!");
		}
	}
}

Output from ORMilesMonthsExample.java:

Your car warranty has expired!

--- Output Ends ---

NOTE:

You are reading previously generated output. You are not currently running the ORMilesMonthsExample application at the momement. You need to compile and run the source code first.

To run this program:


Authors: Kevin Chu and Eric Brower
Copyright 2000 Prentice Hall PTR