Jared Knowlton

Greenhorn
+ Follow
since Sep 20, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jared Knowlton

Let me just give you some background. I applied for a Software QA job and at the end of the interview the gave me this story problem and told me I had until Friday to do it. I guess you could call it homework but instead of me paying tuition to be given a problem like this it may result in me getting paid.
My skills and experience as a java programmer are lacking. I have found it hard to really grasp java without having real life experience and I have found it hard to get a job without that experience.
Having given you that background let me tell you I have wrote 2 classes and I found some code for the random number generation. I don't know if you want me to e-mail you the code or if you want me to post it here.
I will say this again and again - your help is very much appreciated.
20 years ago
I appreciate the tips you have given me and its not homework.
20 years ago
Steve, Jon, Jennifer, and Kelly own dogs and take their dogs to the park between 12:00 noon and 4pm. There are four activities the owners can do while at the park. These are as follows: Play catch with the dog, clean the dogs poop, walk the dog, or a fourth activity. The owners can only be doing one activity at a time, and the order that they do activities should be random. The park has two tennis balls for playing catch and one pooper-scooper. This means that only two owners can be playing catch at once, and only one owner can be cleaning poop at a time. If an owner tries to play catch or clean poop and can't because the tennis balls or the pooper-scooper are being used they should do their fourth activity until a ball or the pooper-scooper becomes available. If there are two or more owners that are waiting for the same object then the owner that started to wait first should get the object first (FIFO). Then they should start the activity they originally tried to do. The time the owners take to do each activity varies. The owner activity lengths, in minutes, are as follows:
Owner Catch Clean Walk
Steve 5 2 10
Jon 8 2 4
Jennifer 10 4 8
Kelly 1 2 6
Each owner also has a fourth activity they can do but the activity and activity lengths vary from owner to owner. The lengths should be random whole numbers. Steve reads between 2 and 8 minutes, Jon plays game-boy between 4 and 6 minutes, Jennifer cross-stitches between 1 and 5 minutes, and Kelly crochets between 6 and 10 minutes. If the owner does their fourth activity because it was randomly chosen then their time should be random as well, according to the above description. If the owner does their fourth activity because they are waiting for a ball or the pooper-scooper, then they should do the activity until the object becomes free and then start doing that object's activity. You should record what owner begins which activity at what time. You should save all this information to one file. Each record in the file should be on a separate line and each record should be in the format 'Owner:Time:Activity.'
20 years ago
Those of you have good jobs working with Java - how did you get your start and how long ago did you begin your java career?
20 years ago
I think I figured it out. I made sure that the DummiesIO.java file was in the same folder as the file I was running.
20 years ago
I am getting the cannot resolve symbol error and I checked that the Caps match throughout and that the Brackets and braces are all matched up.
Code follows:
public class Authenticator
{
public static void main(String args[])
{
System.out.println();
System.out.print("Username: ");
String username=DummiesIO.getString();
System.out.print("Password: ");
String password=DummiesIO.getString();
System.out.println();
if (
(username.equals("bburd") &&
password.equals("swordfish")) ||
(username.equals("hritter") &&
password.equals("preakston"))
)
System.out.println("You're in.");
else
System.out.println("Sorry, pal. You can't log in.");
System.out.println();
}
}
20 years ago
I had the same problem and it was answered for me by some kind folks in another forum.
Basically make sure when you run the file that you type the java file with the first letter in Caps.
For example:
javac Mortgage.java
java Mortgage
If you type java mortgage you'll get the error you are getting.
But of course you need to have your path and classpath set correctly as the others have said.
20 years ago
Yes Pauline that worked - I was able to run the program. I can't believe I overlooked something as simple as that. Thanks for your help all.
20 years ago

Originally posted by Bear Bibeault:
Sounds like you have a casing problem. Be sure to specify the class name as Mortgage everywhere. "mortgage" will not do.
bear


I'm not quite sure what you mean by that, are you saying that I need to change the class name to Mortgage everywhere.java ?
javac mortgage.java
java mortgage everywhere
Please give me an example of how I run and compile
20 years ago
I can compile a program but I can't get it to run.
There error it comes up with is as follows:
Exception in thread "main" java.lang.NoClassDefFoundError: mortgage (wrong name: Mortgage)
20 years ago
I'm on Mac OSX 10.2.6. I did try javac from the terminal window and it seems to work but I didn't have anything to compile. I'll write a program and I'll try compiling it.
20 years ago
This story printed from: http://java.sun.com/industry/news/story/28714-print.do

(Please note: Content on this page was provided by a party external to Sun.)
August 14, 2000, 03:39 AM
Get Into The Mac Java Groove With...JavaGroove
ScreamingMedia, The Mac Observer
JavaGroove 1.0d8 ($29.95 Shareware)
Squirrel Software Last time we had a look at Java on the Mac, it was the spiffy MacJikes compiler, which has since released versions for Mac OS X DP2 and DP3. Since then, Sun still hasn't bothered to release a Mac version of their JDK, seemingly leaving this task to others. Fortunately, we've found a promising environment for Mac Java development called JavaGroove. It includes features found in more expensive packages, such as a friendly visual development environment, but at a fraction of the cost.
After you install JavaGroove, you'll need to copy (copy, do NOT move!) your JDKClasses.zip file from the location in the System Folder (Extensions:MRJ Libraries:MRJClasses:JDKClasses.zip to be exact) to the JavaGroove Classes folder. Once you do this, you can start the environment and write some code.
The JavaGroove Project Manager While JavaGroove was able to compile the standard "Hello World" application, the real fun comes in if you want to design an interface for use with your Java application. JavaGroove contains a forms designer, where you can place interface elements such as pulldown menus, buttons, text fields, scroll bars and check boxes. Once you design your interface, you can then export it to Java code.
If all goes well, your code will compile and produce one or more .class files. At this point, you need a tool to take the class files and execute them. Your best bet is to get your hands on the Mac OS Runtime for Java SDK, which can be found on Apple's SDK download page. This package has an application call JBindery, which can execute .class files, and also create a standalone Macintosh application from the .class files.
If you want to check out Java development on the Mac, but aren't yet ready for some of the more expensive development tools, then JavaGroove is definitely worth a look.
Have any other Mac OS Internet Gadgets you'd like us to look at? Let John know via e-mail, or share it with the rest of us in the Mac Gadget Forum.
20 years ago
Thank you for answering my question
20 years ago
What is the difference between the SDK and JRE? Oh yes and regarding this forum is there any kind of User CP so you can keep track of your postings?
20 years ago
I need an entry level job where I can learn Java. Does such a thing exist or do you have to be born with 3 years experience in Java. I mean I have a Computer Science Degree but that doesn't seem to cut it for most employers.
20 years ago