Preview:
 import java.util.*;
 class comparision{
	 public static void main(String[]args){
		 int a = 10;
		 int b = 10;
		 System.out.println("Comparision operators");
		 System.out.println(a<b);
		 System.out.println(a==b);
		 System.out.println(a>b);
		 System.out.println(a<=b);
		 System.out.println(a>=b);
		 System.out.println(a!=b);

		int c = 10;
		int d = 10;
		System.out.println("Arithmetic operators:");
		System.out.println(c+d);
		System.out.println(c-d);
		System.out.println(c%d);
		System.out.println(c/d);
		System.out.println(c*d);
		
		int e = 10;
		int f = 10;
		System.out.println("Bitwise operators:");
		System.out.println(e>>f);
		System.out.println(e<<f);
		System.out.println(e|f);
		System.out.println(e^f);
		System.out.println(e&f);
	}
}	
		
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter