Search:

Type: Posts; User: coolidge

Search: Search took 0.35 seconds.

  1. [SOLVED] Re: Project help...confusion with changing a getter/setter for a driver class

    ...wow, funny how walking away from code you've been writing for awhile and coming back after a break makes a difference....I figured out the problem and it's now giving the required result.

    -C
  2. [SOLVED] Project help...confusion with changing a getter/setter for a driver class

    We were given a class (ParkingSpot) where the constructor, getters/setters, and toString are already set up. Our assignment is to create a class (FindParking) that creates a current car location and...
  3. Re: Studying for a test, can't figure out my code won't work

    Thanks KW, the use of substring was the trick. I'm new to java and programming so I'm still fumbling through things from time to time. I sometimes tend to make things harder for myself when I'm...
  4. Studying for a test, can't figure out my code won't work

    The question asks to create a program that will read a first and last name from the
    keyboard and create a string that consists of the first letter of the first name, followed by
    the first four...
  5. Re: Using \n escape sequence in a toString method

    Thanks again newbie....I got it working great now.

    -C
  6. Re: Using \n escape sequence in a toString method

    Thanks for the help newbie! This did help create newlines for each item, but now its calling Title: " + title", Author: "+ author" instead of getting the data I set up for the 3 books I created in my...
  7. Using \n escape sequence in a toString method

    Hello all,
    I'm working on a homework problem that's due this evening. The prob asks to create a toString method that returns a "nicely formatted, multi-line description" of the class objects I...
  8. Re: HELP! My applet won't run on a web browser....

    ...figured it out. I was using the wrong format in my html file. I switched it to the correct form and now the applet loads.
  9. Re: HELP! My applet won't run on a web browser....

    One thing I just noticed, in the directory with all the files, there's a file named <filename>$1.class. This type of file is NOT present in the directory of the applet that DOES work in a web...
  10. HELP! My applet won't run on a web browser....

    This is for an assignment I need to turn in tonight! My applet runs fine in Eclipse, but when I try to open it in a web browser, the screen goes white, acts like its loading something, but then quits...
  11. Replies
    3
    Views
    290

    Re: Total NOOB question

    So, I put it into a Java program and ran it and got 0.0, I guess all I was looking for is the "math rules" for Java. This answer tells me that it doesn't round decimals up (unless the program is set...
  12. Replies
    3
    Views
    290

    Total NOOB question

    Hello all, I'm taking an intro to CS class based on Java. A question in the book gives the following declarations:
    init iResult, num1=25, num2=40
    double fResult, val1=17.0, val2=12.78

    and then...
Results 1 to 12 of 12