Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
using BigDecimal for double value calculation could be very expensive in low latency trading applications.
what is the alternative please ?
Use an int or a long, of cents, or microcents, or whatever is the lowest appropriate increment of money you're willing to measure.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 days ago.
Improve this question
Is there an algorithm or hash to splits groups into 2, for A/B Testing?
We have customerIds, 1-5000. originally thinking of using Even/Odd, Mod %2. Are there any other algorithms available? Just curious, currently using Java Spring Boot.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I want to make an arraylist that has random numbers and make it in order from least to greatest.
How do I do this?
Try using the
Collections.sort(your_array_name)
This sorts your array from least to greatest in place.
If you still want some more information, try this link:
https://www.geeksforgeeks.org/collections-sort-java-examples/
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a fully working B-Tree, and I want to convert this into a B+tree.
Is there any way that I can achieve that without changing so much of my code? is it possible?
Is there any way that I can achieve that without changing so much of my code?
Nope. Significant amount of change is required. B+ tree doesn't store data pointer in non-leaf nodes.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Airthematic operation on Big numbers up to 30 to 40 digits long, some of the related material on internet is not really related. any idea how can we do this.
It's right under your nose, in the standard Java API.
You should use BigInteger or BigDecimal for this purpose.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I need a thread-safe Queue and my question is that are there any performance difference between the queue I implement using List and wait/notify (simplest implementation) and classes such ArrayBlockingQueue and etc.?
The question is too vague to be answerable. Here is my advice:
If there is a standard class that does the job, use it in preference to rolling out your own.
Profile your code on realistic inputs to see where the bottlenecks are.
Optimize as appropriate.