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

Reputation: 521 Enlightened
Active Posts:
5,603 (2.21 per day)
20-March 08
Profile Views:
Last Active:
User is offline Oct 27 2014 10:13 PM

Previous Fields

OS Preference:
Favorite Browser:
Favorite Processor:
Favorite Gaming Platform:
Your Car:
Dream Kudos:
Expert In:

Latest Visitors

Icon   Locke isn't around here much anymore.

Posts I've Made

  1. In Topic: [Discussion] Using JSON to pass data

    Posted 17 Mar 2014

    View Postandrewsw, on 17 March 2014 - 12:52 PM, said:

    With apologies that this is slightly off-topic, but I saw this json:select() site recently:


    It makes it easy to access data in complex JSON documents.

    It feels like CSS.

    I just thought it might be of interest to some people reading this topic ;)/>

    I'm not sure if there is a need for something like this, but it is an interesting idea.

    I find it mildly (ok, not mildly, extremely) hilarious that there is a NodeJS implementation of this. That's gotta be one of the most pointless things I've heard of.

    I'm pretty much with BetaWar on how much I use it at work. Any transaction from client to server.
  2. In Topic: Two different data types within one input

    Posted 11 Nov 2013

    Well, you can take the input as a string and then parse out certain parts into other data types. For instance, say you want your input to follow <float> <"C" or "F">, then you can split the string by the space in the middle, between the number and the character.

    Scanner scanner = new Scanner(System.in);
    String input = scanner.next();
    // here we split up the pieces
    String[] parts = input.split(" ");
    // code to continue the program, complete with error checking
    if (parts.length != 2) {
        // they entered an improper string, so tell them
    } else {
        try {
            float degrees = Float.parseFloat(parts[0]);
            if (parts[1].equalsIgnoreCase("C")) {
                // code to convert Celsius to Fahrenheit
            } else if (parts[1].equalsIgnoreCase("F")) {
                // code to convert Fahrenheit to Celsius
            } else {
                // they entered something other than C or F for the second argument
        } catch (NumberFormatException nfe) {
            // they entered something other than a number

    Hope this helps. :)
  3. In Topic: Throwing exceptions URL scanner

    Posted 28 Oct 2013

    You'll have to import the exceptions, as well as any classes you're using.

    import java.net.MalformedURLException;
    import java.io.IOException;

    Plus, the main method shouldn't really throw exceptions, as it doesn't fail gracefully, and wouldn't yield immediately useful output. A try/catch block would suit you nicely here.

    try {
        // code here
    } catch (MalformedURLException mue) {
        // code to execute if a MalformedURLException occurs
    } catch (IOException ioe) {
        // code to execute if an IOException occurs
  4. In Topic: What are you working on today?

    Posted 22 Oct 2013

    Finalizing application integration for the text-to-speech engine we've started using. A somewhat elegant combination of C, Java, and Javascript (with some NodeJS on a separate server).
  5. In Topic: Rational. I need help with adding nullExc. and dividebyzeroExc.

    Posted 16 Oct 2013

    Well, I'll start with what you've tried. You've attempted the DivideByZeroException and almost have it. Your only problem is that you have declared a Rational object's variables as private. That means that you can't access them with the dot notation, like you have in your if statements checking for zeros. You must use the getDenominator() function on the numb object in those cases.

    NullArgumentException will be somewhat simpler. It's the same kind of check as the DivideByZeroException, but you'll need to check if numb == null. Make sure to insert that new if statement before the checks for zero, otherwise you'll get a NullPointerException.

    Hope this helps. :)

My Information

Member Title:
Sarcasm Extraordinaire!
24 years old
March 7, 1990
Kansas, USA
Video games, music (mostly rock/metal), playing guitar
Full Name:
Bradley Koelper
Years Programming:
Programming Languages:
Java [EE]
Assembly [a teeny bit]

Contact Information

Website URL:
Website URL  http://


  • (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
  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
  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
  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
  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