« first day (2041 days earlier)      last day (2894 days later) » 

6:16 AM
@Vogel612 oh.
Is that the new industry standard? Is it still important and useful to know awt and swing?
 
yes and yes-ish
 
Hi
morn
if(condition){
//do something
}else{
// do something else
}
how can i translate this to Java 8?
 
@CrazyNinja that is Java 8
 
O.o ... yikes. I mean, take this portion of code and put it into a small method by using functional interfaces, etc
 
7:18 AM
morn
 
hey @Nicktar
 
hey @CrazyNinja
 
 
4 hours later…
11:17 AM
some help please?
the above code is a solution i wrote with some help from CodeReview answers.
But I have a problem where the Order matters in my ArrayList<Decorator>
can anyone suggest a solution?
problem arises because 15 satisfy both the following requirements
n -> n % 3==0
n -> n % 5==0
Question: write a program which prints numbers 1 - 100 and if a number is divisible by 3, it should print FIZZ, if it is divisible by 5 it should print BUZZ and if the number is divisible by both 3 AND 5, it should print FIZZBUZZ
 
12:06 PM
Hi
 
hola
 
I can answer your question
 
@Gregor91 Of Course!, why not?
But what I'm looking is modularity with Java 8 features
 
Hmm I understood @CrazyNinja
Unfortunitely I can't answer your question
if(number%3==0 && number%5==0)
System.out.println("FIZZBUZZ");
else if(number%3==0)
System.out.println("FIZZ");
else if(number%5==0)
System.out.println("BUZZ ");
 
That's old way... However you tried it and got some exercise to your brain ;)
 
12:13 PM
I will search Java 8 features :))
Thank you @CrazyNinja :)
 
String str = "";
if(number % 3 ==0){str = "FIZZ";}
if(number % 5 ==0){str += "BUZZ";}

return !str.isEmpty() ? str : Integer.valueOf(inputNumber);
@Gregor91 this is the most appropiate way to solve this writing a method like above (some cool guy has answered this in CodeReview, this is not mine answer)
 
Oww good solution :)
 
But what i'm trying is, modularity and trying to train my brain to think so
 
My brain shining, thank you for your solution
 
lol...
 
1:22 PM
how do i make a java gui not ugly
 
1:35 PM
another question
 
1:50 PM
Im trying to figure out how to make a GUI that opens up file explorer so the user can select a CSV file to be used as input for my program. I went on a little adventure through the Desktop class and found the open() method so i know I can use that, but I have no clue how to open the file explorer and get the file path to use
 
2:16 PM
Morning, Java!
 
hello @Michael
 
Hey there, @Johnny.
 
3:00 PM
how do i make a java gui not ugly <- a question for the ages
2
 
Don't put your face on it @Johnny
buuuurrrrnnnn
 
@/
 
3:20 PM
0/
 
4:03 PM
@ballBreaker No problem, got an aloe vera plant next to me
@wonderb0lt yes it is.
 
4:50 PM
anyone got any advice for my question
not the GUI one, but the file explorer shit
 
5:02 PM
nvm i found JFileChooser. weird i didnt see it before
 
 
2 hours later…
7:18 PM
mayday mayday
problem encountered
 
 
1 hour later…
8:34 PM
@JohnnyCoder this is ground control, what is your emergency?
 
 
1 hour later…
9:38 PM
Hi, could anybody please help me clarify one detail about serialization?
 
10:33 PM
@Vogel612 i seem to have botched my gui
when it opens, there is nothing on the frame, then if i minimize and maximize, my stuff shows up
no clue what i did wrong
never mind
I had the setVisible line before the setContentPane line
like a dumbo
wow something so small yet so important
 
 
1 hour later…
11:43 PM
Im being a total duffer, how do i make the GUI window spawn in the middle of the screen instead of in some godforsaken corner of the screen
 

« first day (2041 days earlier)      last day (2894 days later) »