Avatar of DarkwolfX37

Status

Recent Statuses

2 yrs ago
Current "I've spent a lot of time thinking about my past... My mistakes... And I've come to the conclusion that I was right about everything."
2 likes
3 yrs ago
"What you know will kill you but you will die laughing."
1 like
3 yrs ago
Hey, you know what's annoying? Being self-centered. Getting mad at people for doing something instead of something else when they're just having fun sucks. Gotta love self-loathing, too.
3 likes
3 yrs ago
"You were last seen the day you disappeared."
1 like
3 yrs ago
"There will always be shitheads. That's why they'll always try to out-shit them." - yourMoonstone | Reminder that all fanart is illegal. |
1 like

Bio

Important News



Important Quotes




Most Recent Posts

<Snipped quote by GalaxyRaider>

Darkloids. Darkloid David and Darkloid Dark more or less tortured her. I don't think Araby was there yet.


What did The End have to do with it?
<Snipped quote by DarkwolfX37>

This is upsetting.


It's accurate though.
<Snipped quote by DarkwolfX37>

That first one is amazing and super useful to anyone who's learning it.

That second one is written by someone who is clearly not a fan of object-oriented programming. I get it and it's a bit funny but it's not true.

I recognize the third one and it needs more descriptors, but it's cute and predicted Beatrice years before she existed.


The comments tear it apart and are amazing.
static4.fjcdn.com/comments/Content+is…
<Snipped quote by GalaxyRaider>

That's crazy. Sorting algorithms should be bundled in later.

Also this: imgur.com/gallery/voutF


funnyjunk.com/channel/animemanga/Waif…
The pic and comments are all wonderful.
geeksaresexy.net/wp-content/uploads/2…
i0.kym-cdn.com/photos/images/original…

<Snipped quote by GalaxyRaider>

That's crazy. Sorting algorithms should be bundled in later.

Also this: imgur.com/gallery/voutF


God damn that's cool. And the comment is amazing. Glad you sorted that out.
<Snipped quote by DarkwolfX37>

Yeah, but also analyzing other peoples' code is difficult. The problem is easy to miss when you aren't familiar with the internals.


True, but I prided myself on helping the people next to me when they had trouble so it hurts double that I can't with this.
<Snipped quote by DarkwolfX37>

It's because static methods. They have to be instance methods because otherwise, the class looks at static variables length and width. I mean, you could technically pass this into the static method as a parameter, but that's super convoluted. Otherwise, the static method has absolutely no way to see instances of your class.


Ah, that does make more sense. I figured making new variables would work better, but I totally missed that they were static in the first place.
Geez I always feel like I'm back in class when you come up with a much simpler solution. Bad memories of making a long bit of code for something there was a function in the language for. :/
Time for Please Help Me Find Out What's Wrong With My Code Because It Is Killing Me 2!
If you don't mind it.
I'm mainly concerned with Shape and Rectangle right now. If I get those, I'll be fine. I get no errors when running this, but my values for the Area and Perimeter are always 0.0 no matter what I do.





Well for one, you might be better off getting the length and width in the same place.
Secondly, this might be a different thing with java than I learned, but personally I'd put "width * 2" and "length * 2" instead of "2*width" and "2*length". Not really a problem per say unless java has a hard time with the way you put it.
Third, you're defining length and width as 0. Instead of "templength" and "tempwidth" I'd suggest creating new variables and pulling those instead of trying to apply them back to length and width.
Fourth, it could be an issue of order. Having Rectangle(double length, double width) after defining them as zero could be the problem. Again, I suggest new variables entirely than ones you've already used.
But since I'm not much for Java I bet none of this is applicable.

Happy now soul? I can't post as anyone else until whiz gets his color shit further.
"We should form a Haiku Clucks Clahn."
Fucking.
© 2007-2026
BBCode Cheatsheet