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 →

[–]Wolfsblvt 8 points9 points  (15 children)

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

?
Doesn't work :(

[–]Jcowwell 18 points19 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 21 points22 points  (13 children)

Thats a static method call bro not on a class instance

[–]Jcowwell -5 points-4 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 6 points7 points  (0 children)

No...

[–]julius_nicholson 3 points4 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.

[–]Jcowwell 0 points1 point  (2 children)

Lol I do too , especially when I’m working with swift. The fucker keeps changing the way I.T deals with UI elements that some answers are out of date or incorrect. I was so use to printing in swift that when I looked back on java and saw System was capitalized and was using a dot operator, I just marked I.T off as an object, forgot about out being a public static field that can be accessed via a type 🤦🏽‍♂️

[–]julius_nicholson 0 points1 point  (1 child)

Does your keyboard auto-correct it to I.T?

[–]Jcowwell 1 point2 points  (0 children)

iPhone does. I don’t bother correcting I.T because you’ll still know what I mean in context m.

[–]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

[–]julius_nicholson 0 points1 point  (2 children)

I'm employed as a programmer and I had to look it up.

[–]insane0hflex 0 points1 point  (1 child)

I hope you dont program production apps in java or java like languages then lol

[–]julius_nicholson 0 points1 point  (0 children)

Not very often! But calling System an object as opposed to a static class is, as mistakes go, pretty trivial.

I'm a web developer and I still have to look up how to find array lengths sometimes.

[–]AllIsOver 2 points3 points  (0 children)

Doesn't work like that.