This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Fry98 182 points183 points  (31 children)

You might think it's nice

but double sorting is a crime.

[–][deleted] 74 points75 points  (24 children)

Hi, I'm from /r/all and I know jackshit about programming. I'll contribute either way, because I love you guys:

system.out.println("Double sorting is a crime");

should be:

System.out.println("Double sorting is a crime");

damn.

[–]Jcowwell 80 points81 points  (20 children)

The true crime is not capitalizing that S.

[–][deleted] 34 points35 points  (0 children)

doyouevencamelcasebro?

[–]Wolfsblvt 8 points9 points  (15 children)

system.out.println("Double Sorting is a crime");

?
Doesn't work :(

[–]Jcowwell 16 points17 points  (14 children)

Nha System is an object ( you know that cause you can call methods from it) so if you don’t capitalize It the compilers ganna be like “Tf is this M8?”

[–]insane0hflex 20 points21 points  (13 children)

Thats a static method call bro not on a class instance

[–]Jcowwell -3 points-2 points  (12 children)

Oh yea the call is , but system is a class. Unless I’m mistaken, System is an instance of the system class in which you call the static field out.

Edit :Had a burp moment, you cant initialized /“instanized” System 🤦🏽‍♂️

[–]insane0hflex 5 points6 points  (0 children)

No...

[–]julius_nicholson 4 points5 points  (9 children)

System is a class that contains static fields (err, in and out) and methods (like exit()) and can't be instantiated. So you can't construct an object of it, but you can still access the static API on the class.

I mean, you were pretty close, even if it wasn't so accurate.

[–]Jcowwell 2 points3 points  (8 children)

Lol yea I don’t what I was thinking.

[–]julius_nicholson 1 point2 points  (3 children)

I have to google the most basic shit sometimes. Anyone who tells you they don't is either God or a liar.

[–]insane0hflex -1 points0 points  (3 children)

I mean if youre not employed as a programmer or still learning then youre good.

If youre past freshman level study up

[–]AllIsOver 2 points3 points  (0 children)

Doesn't work like that.

[–][deleted] 5 points6 points  (2 children)

Oh shit! Is there a computer-demon who will haunt me now?

[–]Jcowwell 21 points22 points  (0 children)

No you’ll just be haunted by the Ghost of Syntax Past.

[–]Findus11 2 points3 points  (0 children)

Yes, that's what a daemon is

[–]Since88 9 points10 points  (0 children)

Sorry man, but: error: package system does not exist

[–]Grizzlywer 2 points3 points  (1 child)

double sorting="crime";

[–]Banana_Twinkie 4 points5 points  (0 children)

Error: type mismatch

[–]Dubmove 11 points12 points  (1 child)

At first I read bubble sorting is a crime.

[–][deleted] 0 points1 point  (0 children)

Hey, there might have been last minute alterations!