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
Home » Java Tutorials » JDBC Tutorials
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
1
Tutorials Categories
Questions to Ask in an Interview
Remember to ask questions that are relevant to the company and position for which you are interviewing.
- What are some of the common characteristics of employees that excel in this environment?
- Would you please comment on your style of management and the reporting structure?
- What is yo