« first day (3423 days earlier)      last day (1742 days later) » 

00:00
All extremists should be taken out and shot. (source)
 
3 hours later…
03:07
dreams of electric sheep
 
6 hours later…
09:07
farts
 
2 hours later…
10:47
Hi Zoe your back
@Zoe I missed you!
Zoe
Zoe
^^
I missed you too
11:06
whoa there's someone actually in here
Zoe
Zoe
No, we're GhOOoSossSSsssStTssSss
I'm scared ._.
Zoe
Zoe
I said we're ghosts, not that we're dangerous .-.
We don't bite hard
if you think about it, nobody has ever died to a ghost
Zoe
Zoe
yet
11:18
unless somehow pulmonary embolism is just the way that ghosts kill people
Zoe
Zoe
if sufficiently scary, ghosts can cause heart attacks
people have been known to die of fright
though I don't know if that's really a thing or if that's just what they used to call a heart attack back in the day when it was caused by something frightening
 
3 hours later…
14:44
Ghosts are f**kin' creepy lol
Ghosts... Ghosts....
(OHHAI, btw)
 
1 hour later…
15:56
Hi, can I ask for some help?
 
2 hours later…
18:43
Hi guys!
Please check the following code in java 8:
class SomeClass{
public String method1 (String inputString){
return inputString.toUpperCase();
}

public String method1 (String inputString){
return inputString.toLowerCase();
}
}
public class AnotherClass{

public static void main(){
List<String> list = new LinkedList<String>();
Stream.Builder<Function<String, String>> sb = Stream.builder();

sb.accept(SomeClass::method1);
sb.accept(SomeClass::method2);

Stream<String> values = sb.build().map(method -> method.apply(inputString));
values.forEachOrdered(list::add);
}

}
Sorry for the formatting...
My question is : will the list (I mean the resulting list variable named "list") always be ordered in the encountering order of methods in my stream (method1 result, then method2 result)?
In other words, will the first element always be in uppercase, and the second element in lowercase?
Zoe
Zoe
list::add appends to the list. Unless you sort the list, the order of the elements won't change
@Zoe
Yeah right
But what is the order in the list named "values" then?
I mean the stream named values...
That was the real question in fact
19:04
In fact, in my case, it doesn't matter to me if method1 is executed before method2. But what I need is to ensure that the result of method1 is always the first element and the result of method2 is always the second element in my list (named "list"). What I don't know is if the way I used the stream API guarantees that order

« first day (3423 days earlier)      last day (1742 days later) »