could anyone please give a source code. Thanks!
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
could anyone please give a source code. Thanks!
Could anyone please give monies?
Thanks!
// Json
source code for what?
pinoy ka ba?
hahahahaha !Could anyone please give monies?
Here's the general method for easily computing the performance of a code segment:
Find out what you want to vary for a section. Ex.: In a sorting algorithm, you vary how many elements to sort. In a primality test, you vary the number you want to test if it's prime.
Surround your code with timers (I use the Date class), and then subtract the differences in time.
Date start = new Date(); // code section goes here Date end = new Date();
You can find the difference in the times by using getTime() method, which returns the number of milliseconds from a date back in 1970 to the time the Date object was created.
Then, run the code with a variety of inputs, generally I like a lot of small points kind of clustered along with some medium-size inputs.
After you have your points, take a regression of them (there are many ways to do this). Run your algorithm a few more times with some absolutely large values and check that they fit into your regression model.