Browse Today's favorites or All time favorites.
Please Sign In or Register to share and submit your questions.
Java Queries
Complete java interview questions library
April
2008
How do I generate a random number between 0 and some integer n
First you would need to create an instance of Random class:
Random random = new Random();
Then, you can get your random number by calling:
int pick = random.nextInt(maxvalue);
This would return a value from 0 (inclusive) to maxvalue (excl
Tutorials Categories
Follow up with a Thank-You Note
Make sure you let the interviewer know how pleased you were to have the chance to interview with him or her. Immediately after the interview, send the interviewer a thank-you note, thanking him or her for taking time to interview you.