Using the Integer.MIN_VALUE and MAX value.

import java.io.*;


public class test
{

public static void main(String args[]) throws IOException
{int n = Integer.MIN_VALUE;
int n2 = Integer.MAX_VALUE;
System.out.println(n);
System.out.println(n2);
}
}