Jul 12 2009

DjVu

Category: Newsadmin @ 11:12 pm

DjVu (pronounced déjà vu) is a computer file format designed primarily to store scanned documents, especially those containing a combination of text, line drawings, and photographs. It uses technologies such as image layer separation of text and background/images, progressive loading, arithmetic coding, and lossy compression for bitonal (monochrome) images. This allows for high-quality, readable images to be stored in a minimum of space, so that they can be made available on the web.

DjVu has been promoted as an alternative to PDF, as it gives smaller files than PDF for most scanned documents. The DjVu developers report that color magazine pages compress to 40–70KB, black and white technical papers compress to 15–40KB, and ancient manuscripts compress to around 100KB; all of these are significantly better than the typical 500KB required for a satisfactory JPEG image. Like PDF, DjVu can contain an OCRed text layer, making it easy to perform cut and paste and text search operations.

Home page : http://djvu.org/

Tags: , , , ,


Jul 04 2009

The Equality and Relational Operators

Category: Javaadmin @ 1:26 pm
==	equal to
!=	not equal to
>	greater than
>=	greater than or equal to
<	less than
<=	less than or equal to
public class ComparisonDemo
{
	public static void main (String[] args)
	{
		int x = 3;
		int y = 5;
		if (x==y)
			System.out.println("equal to");
		if (x!=y)
			System.out.println("not equal to");
		if (x&gt;y)
			System.out.println("greater than");
		if (x&gt;=y)
			System.out.println("greater than or equal to");
		if (x&lt;=y)
			System.out.println("less than or equal to");
	}
 
}

Out put
not equal to
less than
less than or equal to

Tags: , ,


Jul 04 2009

The Difference between ++x and x++

Category: Javaadmin @ 12:04 am

public class PrePostDemo
{
	public static void main(String[] args)
		{
		int a = 4;
		int b = 4;
 
		System.out.println(a);
		a++;
		System.out.println(a);
		a++;
		System.out.println(a++);
 
		System.out.println(b);
		++b;
		System.out.println(b);
		++b;
		System.out.println(++b);
		}
}

The increment/decrement operators can be applied before (prefix) or after (postfix) the operand. The code a++; and ++b; will both end in result being incremented by one. The only difference is that the prefix version (++b) evaluates to the incremented value, whereas the postfix version (a++) evaluates to the original value.

Tags: , ,


« Previous PageNext Page »