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.