How to introduce n timepoints for epoch for date java ?
Suppose I have finite epoch τ = {t0, t1, . . . , tn } of n timepoints for Stream data.
I want to introduce it for Stream data using a (sliding window).
Please Guide?
My suggestion would be to use an IntStream
to provide you a Stream of ints that allow you to represent τ:
final int n = 7;
IntStream.range(0, n).forEachOrdered(i -> {
System.out.println("t" + i);
});