My best guess is that you cannot declare your "x" to be a static in the main method. Possible reason... static variables are class variables and I don't think they can be declared within methods (including main()). Do correct me if I am wrong. Shyam [This message has been edited by Shyamsundar Gururaj (edited September 08, 2001).]