This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Originally posted by Malhar Barai: hi all to generate random password...i use static Random rand = new Random(); but on compilation, it gives "illegal start of expression error".. what cud be the pro..??
Static variables cannot be defined within methods. They should be enclosed within classes only. Is this the problem? -GB.