Details
Joined devRant on 5/26/2016
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
-
Did this on my first programming exam.
int index = 0
int value = 0
try {
while true {
value += array[index]
index++
}
} catch NullPointerException {
System.out.print("Sum: " + value)
}
The task was to add together all numbers in an array.
I somehow aced the exam, but got called in to teachers office this is not the way to use exceptions.7 -
"How are you going to do that?"
"I don't know..."
"I need an estimate."
"40 hours."
"Why's it going to take that long?"
"I couldn't find the right stack overflow article." -
When you wear headphones without playing any music, and avoid anyone's line of sight to get work done5