Locke's Profile User Rating: *****

Reputation: 526 Enlightened
Group:
Alumni
Active Posts:
5,611 (2.14 per day)
Joined:
20-March 08
Profile Views:
90,606
Last Active:
User is offline Apr 21 2015 11:56 AM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Linux
Favorite Browser:
FireFox
Favorite Processor:
AMD
Favorite Gaming Platform:
Playstation
Your Car:
Hyundai
Dream Kudos:
450
Expert In:
Java

Latest Visitors

Icon   Locke isn't around here much anymore.

Posts I've Made

  1. In Topic: Spring - Summer 2015 Fitness

    Posted 21 Apr 2015

    Donuts:

    Posted Image
  2. In Topic: Basic do-while loop question

    Posted 7 Apr 2015

    You were right with the ||. Those are your exit conditions. However, a common "gotcha" about comparing strings is that you cannot compare them for equality with == and !=. That compares the addresses in memory, not the actual string values.

    What you should use is this: itemName.equals("Shield") || ... || ...

    The same goes for anything that isn't a primitive type. (int, double, boolean, etc.)

    The convention for objects is that the type name starts with a capital letter. Notice that the primitives are all lower case.

    Hope this helps! :)

    Edit: Dang you guys are quick...
  3. In Topic: Spring - Summer 2015 Fitness

    Posted 7 Apr 2015

    The last few years kinda hit me hard and I never really noticed until recently.

    This was my previous situation:
    • In college, walking to every class every day, marching band during the fall semester
    • Eating semi-healthy
    • Getting some random exercise here and there

    My current situation (effective May 2012):
    • Sit at a desk all day at work
    • Come home, sit on the couch or at my desk
    • Eat food that's unbelievably shitty for me

    I've put on just under 30 pounds since I graduated close to 3 years ago. I now weigh about 185 pounds. I was at about 160 at graduation. A non-strenuous walk of a few miles every day would probably do wonders for me. Also, I'm trying to cut down on soda. That's hard. I basically had an IV of it in college.
  4. In Topic: Help with Java Errors

    Posted 7 Apr 2015

    For the error in the equals method in your Player class, you're trying to use otherName as a variable, but there is no record of that variable being declared. What you probably meant was this--return name.equals(otherPlayer.getName());.

    Also, ndc85430 is right, you have already called the constructor above those lines using new.

    I am a bit confused as to why you only have one player object. Wouldn't you need two player objects to play a game of Rock, Paper, Scissors, Lizard, Spock? Otherwise it will only track wins for one player.

    Hope this helps! :)
  5. In Topic: Inheritance Problem

    Posted 31 Mar 2015

    You need to remove the radius field from the Cylinder class. That one is overriding the one that Cylinder inherits from Circle, which is the one you're initializing using the super call. The radius variable that the Cylinder methods are using (the duplicate one) gets initialized to 0.

My Information

Member Title:
Sarcasm Extraordinaire!
Age:
25 years old
Birthday:
March 7, 1990
Gender:
Location:
Kansas, USA
Interests:
Video games, music (mostly rock/metal), playing guitar
Full Name:
Bradley Koelper
Years Programming:
7
Programming Languages:
Java [EE]
JavaScript/jQuery
PostgreSQL
C++
VB.NET
C#
Scheme/Racket
Assembly [a teeny bit]

Contact Information

E-mail:
Private
Website URL:
Website URL  http://
Facebook:
http://facebook.com/bkoelper
Twitter:
_Locke

Comments

  • (2 Pages)
  • +
  • 1
  • 2
  1. Photo

    raghav.naganathan Icon

    11 Dec 2012 - 22:12
    Hey Congrats :) Your rep(512) is a perfect cube :)
  2. Photo

    ishkabible Icon

    28 Mar 2011 - 19:25
    i live in a town called Marion about an hour north of Wichita, and go to School in McPherson. not too many people from Kansas :)
  3. Photo

    ishkabible Icon

    21 Mar 2011 - 18:56
    hey your from Kansas too what part?
  4. Photo

    no2pencil Icon

    12 Jan 2011 - 03:21
    UDDERS!!!!!!
  5. Photo

    BenignDesign Icon

    03 Jan 2011 - 15:53
    What is "\m/"? I see legs and udders. I fear I am horribly wrong.
  6. Photo

    sheane Icon

    23 Nov 2010 - 22:08
    \m/
  7. Photo

    m-e-g-a-z Icon

    09 Aug 2010 - 04:27
    Yeah he was born with the Java gift.
  8. Photo

    markovski Icon

    10 May 2010 - 12:04
    I see you are Java expert, can you tell me what book is best for beginners?
  9. Photo

    Gloin Icon

    01 May 2010 - 13:01
    Why did you change your avatar? :(
  10. Photo

    no2pencil Icon

    29 Apr 2010 - 20:27
    Locke Atrium
  11. Photo

    macosxnerd101 Icon

    23 Apr 2010 - 14:43
    CRAP!
  12. Photo

    no2pencil Icon

    18 Mar 2010 - 19:00
    That's right little boy, you better scream :D *evil grin*
  13. Photo

    Raynes Icon

    09 Mar 2010 - 00:02
    Scream.
  14. Photo

    Raynes Icon

    03 Mar 2010 - 22:29
    Stop viewing my profile, pedophile. :p
  15. Photo

    cordtwo Icon

    03 Mar 2010 - 16:43
    Congrats on the acheivement guy!
  • (2 Pages)
  • +
  • 1
  • 2