When you're roasted in comp sci by your best friend

Status
This thread has been locked.

Ray

Cryptowizard
Banned
Feedback score
0
Posts
730
Reactions
292
Resources
0
So I have this very very bad habit of making things really complicated...

We had this challenge to recreate the method in the String class #replace(CharSequence poop, CharSequence poop2)

The catch was that we had to meet the following guidelines:
- only use the String class methods: substring, charAt, equals, and length
- must use a for loop

So after spending around 20 minutes doing some complicated 40 line thing that looked like:
ICkwnil.png

(yes, this somehow actually worked)

And then I show my friend and goes "oh this is easy"
30 seconds later...

vZFSy9V.png


-flips desk-
"I'M OUT"
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.
Status
This thread has been locked.
Top