Forum: NinjaTrader
February 14th, 2017, 01:39 PM
|
Replies: 12
Views: 3,245
Dictionary
:sorry: :hmmmm: In this case you could just use a sorted dictionary. The following page should give you a hint: https://www.dotnetperls.com/sorteddictionary
|
Forum: NinjaTrader
February 14th, 2017, 10:34 AM
|
Replies: 12
Views: 3,245
Example Code
Yes, it is pure Java. Here is an example which should fit your requirements:
import java.util.TreeMap;
import java.util.Map;
public class Test {
static public void main(String[]...
|
Forum: NinjaTrader
February 13th, 2017, 05:48 PM
|
Replies: 12
Views: 3,245
TreeMap
Just put A and B into a TreeMap (https://docs.oracle.com/javase/8/docs/api/java/util/TreeMap.html) and then use the values() method. :becky:
|