...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
Type: Posts; User: coolidge
...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
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...
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...
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...
Thanks again newbie....I got it working great now.
-C
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...
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...
...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.
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...
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...
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...
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...