« first day (3448 days earlier)      last day (1717 days later) » 

00:00
Q: How many IBM CPU's does it take to execute a job? A: Four; three to hold it down, and one to rip its head off. (source)
picks nose
 
3 hours later…
03:21
@AConsumer github.com/xblade148 (We can collablorate on github)
 
3 hours later…
06:03
hi guys im having a rather silly problem its a simple "missing return case" what i have is a new function which takes an int parameter and returns a string however it keeps saying "missing return statement"

layout of my code:

private String myString (int n){
if ( n ..... ) {
return ...
}
else if ( n ..... ) {
return ( ...... )
}
else if ( n ..... ) {
return ( ...... )
}
else if ( n ..... ) {
return ( ...... )
}

}

Sorry cant release my code due to plagiarism but thats pretty much the layout, what am i missing?
 
2 hours later…
07:41
if all conditions fail, what will be returned?
 
3 hours later…
10:12
\o
10:23
/fatcat
11:15
@Wietlol im not sure reallly
@OakBot Why do you have a picture of me?
@Gemtastic Type /help to see all my commands.
so you are a tree ?
oh you mean the cat
hahaha
@JMoss The method must return a value. You should write "return [fallbackValue]" at the end, or add an ELSE block in the end (without IF) with the same fallbackValue. Well, actually it depends, you can throw an Exception if not all conditions failing means that something is working incorrectly
@Teempy Welcome to the Java Chat, the room for Java enthusiasts! I'm Oak, one of the room's bots. If you want to ask a question, just ask it and someone will respond if they feel like it. But remember that this room is not a help desk or tutoring service! If you want to just hang out, then welcome aboard! Oh, and the room's full list of rules are posted here.
11:26
@Teempy im not sure what my [fallbackValue] would it be good practice to just add return null; at the end?
@JMoss If null is not considered to be a suitable return value for the method, then not. Add a line in the end "throw new IllegalArgumentException("there is no string for that int")", to my mind its better
11:40
posted on April 01, 2020

archive - contact - sexy exciting merchandise - search - about ← previousApril 1st, 2020nextApril 1st, 2020: Hey, I've got a mailing list for SECRET PALS! If you'd like to be a SECRET PAL, baby, now is your chance. I only send out a message like once a month!– Ryan

@Teempy okay thank you very much man
 
2 hours later…
13:33
@Gemtastic Awww Gem... :(
13:43
I'm perfectly ok with being a fat cat
At least I'm cute
Zoe
Zoe
@Gemtastic {{Citation needed}}
@Zoe Why?
Zoe
Zoe
@Gemtastic Because I said so c:
Zoe
Zoe
And because you're actually productive, and don't just roll around on the floor
cough cough <#684676655888859147>
oh, fuck xd
Inb4 @mic telling me this isn't discord
13:49
Are you sure? I'm pretty sure this is discord.
I'm in Voice chat, where you at?
Zoe
Zoe
:P
Zoe
Zoe
Hm, I must be stuck in a text channel
this is discord now
hey doggo
@Zoe That's a discord emote? Dang, kids these days.
Zoe
Zoe
13:50
Hiya Hansu ^^
@Michael No, it's a channel link
I bought a PS4. I thought it was an april fools joke that it was gonna be delivered today
Anyone know why this regex doesn't work?
@user1833028 Welcome to the Java Chat, the room for Java enthusiasts! I'm Oak, one of the room's bots. If you want to ask a question, just ask it and someone will respond if they feel like it. But remember that this room is not a help desk or tutoring service! If you want to just hang out, then welcome aboard! Oh, and the room's full list of rules are posted here.
String Message="<MESSAGE>";
System.out.println(Message.replace("<(.*)$","replace"));
13:56
Everyone's pretty much forgotten about April Fools Day.
/javadoc String#replace
2
@user1833028 Read the javadoc. Is anything missing? :P
Ah.
Thanks.
.replace != .replaceAll
Zoe
Zoe
14:26
@Michael good
@Michael I didnt forget, I just ignore it
14:46
@user1833028 Also, don't capitalize your variable names. Every time you do that, a child dies.
Zoe
Zoe
@Michael String MyString = new customstring(WrapperString);
@Neil Haha, check this out: update3.satisfactory.greeny.dev
@Zoe And that just caused corona virus. Thanks Zoe.
Zoe
Zoe
Oh no, I caused a virus in the past?! :(
Yep.
Zoe
Zoe
Bootstrap paradox incoming
14:49
Now I have to kill you.
@Michael speaking of which... I am surprised SO site is not changed
I bet a lot of people are like: Let's disable our April Fools sh*t. It's not really appropriate, given the circumstances. xD
Zoe
Zoe
@Michael omae wa mou shindeiru
@Zoe Your magic won't save you.
Zoe
Zoe
OI!
14:51
hmm...
Zoe
Zoe
> If you hear this said, it is completely unacceptable to not say ‘Nani?!?!?’.
I don't get that meme.
Ah, melodramatic anime. What would we do without it. xD
Zoe
Zoe
Anime is great
Been watching a ton more now that I basically don't have to leave the house for the next several months
14:57
I used to watch a bit of anime.
I liked Cowboy Bebop and Ghost in the Shell.
@Zoe Any recommendations?
Yes, the animes, I know of the animes with the narutos and the pokémans
Zoe
Zoe
Well, 7SEEDS at least (Netflix), Sword Art Online, A certain scientific Railgun, A certain magical Index, Guilty Crown, Charlotte, Revisions, Is it wrong to try to pick up girls in a dungeon, and A.I.C.O. Incarnation
Guilty Crown,
Charlotte,
Revisions,
Is it wrong to try to pick up girls in a dungeon,
Zoe
Zoe
Yeah, the last one there is a mouthfull xd
does the length of the name reflect on the quality of the show?
Zoe
Zoe
15:05
Idk
(not sure if "reflect on" is the word I am looking for)
Maybe I'll check out 7SEEDS, since I have Netflix
@Gemtastic Don't forget the Dragon Balls!
Zoe
Zoe
All the ones listed are on Netflix in my country
I actually think several of those are made by netflix, now that I come to think of it
I just finished watching Picard.
It was just OK. The ending was a little dumb
Bleach is also interesting
for... a bit
Zoe
Zoe
15:10
I mostly watch anime because the endings are different. Hollywood shows have gotten super predictable xd
then dont watch bleach :D
I watched a ton of One Piece in college. But the series got dumb after a while.
Zoe
Zoe
Ooh, I've heard a lot about one piece
16:11
@Michael balls all around
16:23
Guys how do I insert comma seperated clob in GLobal temporary table
GLOBAL TT Test(
emp_id (30 byte);
)

create or replace PROCEDURE Emp(
p_emp_id in CLOB // need to insert this comma seprated strings into GTT table Test

)
can some one explain me Niche Jobs Run by Humans in 50 Years from Now?
 
3 hours later…
Zoe
Zoe
19:15
2 messages moved to Trash can
 
2 hours later…
21:01
Hi guys,
public class Car {
/** whatever properties **/
User owner;
}

OR

public class Car {
/** whatever properties **/
String ownerId;
}
Please discuss
The latter allows me to work with Car objects without fetching the owners from persistence
but it means that my domain objects contain IDs instead of other domain objects
what is the preferred solution?
 
1 hour later…
22:26
I'm running into some issues with generics and captured types that I can't figure out what the neat solution is.

I've got a variable containing a `List<Something<Object>>` and I want to be able to call `list.add(Something<?>)` and `list.addAll(List<Something<?>>)`, but the compiler does not accept that directly.

What is the best solution to be able to do this?
@TimoMeijer Welcome to the Java Chat, the room for Java enthusiasts! I'm Oak, one of the room's bots. If you want to ask a question, just ask it and someone will respond if they feel like it. But remember that this room is not a help desk or tutoring service! If you want to just hang out, then welcome aboard! Oh, and the room's full list of rules are posted here.

« first day (3448 days earlier)      last day (1717 days later) »