Get number of screen


*********************************************************************
COMPLETE SOURCE CODE FOR : GetNumbersOfScreenInJava.java
*********************************************************************


import java.awt.GraphicsEnvironment;
import java.awt.GraphicsDevice;

public class GetNumbersOfScreenInJava
{
public static void main(String[]args)
{
GraphicsEnvironment myGraphicsEnvironment=GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice[]storeAllScreen=myGraphicsEnvironment.getScreenDevices();

System.out.println("THE NUMBERS OF SCREEN IN MY COMPUTER IS : "+storeAllScreen.length);
}
}


*********************************************************************
JUST COMPILE AND EXECUTE IT
*********************************************************************