Try this program: which i modified to see the results.
Remember that: random() function in java returns a pseudo random number between 0 & 1.
2. when using arrays initialize them before using.
3. There's explicit downcasting required for converting from int to char but not to char[], that's...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.