« first day (2134 days earlier)      last day (2799 days later) » 

ADG
5:38 AM
 
 
2 hours later…
7:20 AM
morn
 
7:54 AM
morn
 
8:44 AM
Morn
trying to learn the Java 8 Stream API atm.
I want to implement a function that calculate the smallest year of a media ;
The media got function getYear() and is stored in a linkedlist ...
My idea is over here: http://paste.ofcode.org/yxCAteXLjF2zefkmteNRS6
The outcomment part is the "old" version, which worked fine.. can u help me ?
 
that will not work this way ;)
you could use .sort(m -> m.getJahr())
and then grab the first entry
 
okay i will try
sort doesnt work with lambda expressions
is there no way i can iterate and compare ?
 
9:20 AM
sorry sort needs a comparator...
sort((m, n) -> Integer.compare(m.getJahr(), n.getJahr())
there might be a way to iterate and compare but that defeats the purpose of streams
as they walk away from the iterative processing. Your code would most likely break if you switched from stream() to paralallStream(), which is one of the key features of the stream-api
 
@Nicktar
Medium juengstesMedium = medien.stream().sort((m,n) -> Integer.compare(m.getJahr(), n.getJahr())).findFirst().get();

thats my expression now, whyever he cant resolve method getJahr
whyever i need to put in datatype of m & n...
than it works
 
9:36 AM
how's medien declared?
 
got it to work... sort() doesnt exit - is called sorted() and then i can leave datatype
 
fge
10:26 AM
You can use Comparator#comparingInt for an easier to write comparator: Comparator.comparingInt(Medium::getJahr)
 
 
2 hours later…
12:49 PM
Happy Friday, Java!
 
friday!
 
@Tavo happy tavo!
You ever watch Bill Burr? I feel like you'd like his stand ups
 
don't even know who that guys is
 
Yeah I didn't know him until the other day, he's super super funny man
I think his comedy is right up your alley
(but I've seen him in a bunch of stuff)
 
I like people like Ricky Gervais
or Louis CK
 
1:03 PM
His humour is somewhat similar to Louis CK
but more angry
You ever listen to stuff in the background while you work?
 
I'll give him a go then
not in English. It's not my mother tongue, so I have to pay attention to what I'm listening
 
ahhh
right right
Well a bunch of his full specials are on youtube, or netflix
 
youtube will do
I don't have Netflix
 
1:24 PM
@ItachiUchiha yes I should switch to javaFX :D unfortunately the current project uses swing
and now I am thinking what the hell... there is no nice, clean and system independent way to check if a .xls file is already open
 
he looks like a fat version of Joel McHale
 
hahha yeyah that's a bad still
he doesn't look fat at all
but ya I kept getting confused if they were the same person at first
 
 
3 hours later…
4:42 PM
ffs i am too stupid to get that linespacing in a StyledDocument
no matter what value i set it does not even react to it :D
 
 
2 hours later…
6:14 PM
Guys, I am kind of new to intellij. I have now made a desired program with maven, how do I export this project as a jar file, so other users can use it?
 
6:56 PM
@tomSurge mvn package
 

« first day (2134 days earlier)      last day (2799 days later) »