Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
NumberSwitcherFactoryBuilder nsfb = new NumberSwitcherFactoryBuilder();
private volatile int firstSwitchedNumber = 0;
private volatile int secondSwitchedNumber = 1;
NumberSwitcherFactory nsf = nsfb.build(firstSwitchedNumber, secondSwitchedNumber);
nsf.produce().reverse().run(); -
a++;
b++;
(you said change, not switch, who cares about what the client wanted when you can give them exactly what they asked for?) -
Task said change, not switch:
a = 6;
b = "hello";
Works regardless of initial values.
Related Rants
-
xjose97x19Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
Cyborg15A guy and a girl are in a Java seminar. Afterward, the guy approaches the girl and asks, "Hey gurrl, can I ge...
-
Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ...
Challenge☕️💻🎊
_________________________
Changing value of two variables without using third variable.
rant
challenge
c#
c++
java
python