@@ -0,0 +1,695 @@
+package org.tguduru.guava.collections;%0A%0Aimport com.google.common.collect.Range;%0A%0A/**%0A * Demonstrates the usage of %7B@link com.google.common.collect.Range%7D.%0A * @author Guduru, Thirupathi Reddy%0A * @modified 11/19/15%0A */%0Apublic class RangeDemo %7B%0A    public static void main(final String%5B%5D args) %7B%0A        final Range%3CInteger%3E inclusiveRange = Range.closed(1, 5); // which is a inclusive range includes end values as%0A                                                                  // well like%0A        // 1 & 5.%0A        System.out.println(inclusiveRange);%0A%0A        final Range%3CInteger%3E exclusiveRange = Range.open(1, 5);// doesn't include 1 & 5.%0A        System.out.println(exclusiveRange);%0A    %7D%0A%7D%0A

Range example