Daniel Lucas

Ranch Hand
+ Follow
since Apr 24, 2006
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 Daniel Lucas

When I think of java being a strongly typed language, I think of the fact that I have to type exactly what I want it to do; I can't leave anything up to the compiler to change on its own.
17 years ago
Alright, Preston (a friend in my AP Comp Sci A class) got it to work. He just initialized first to "adadada" and it started working correctly. Thanks for your help everyone!
17 years ago
I understand what you're saying here. I'm going to continue reading in my book then post back when I find a solution. I managed to get the Dog class to compile, and I even got the DogTestDrive class I just made to compile, but it doesn't work properly. I gave an error when I tried to run it, saying there was a problem with main(). Anyway, I'll post back once I read all the stuff about the readLine() method, and maybe try and catch.
17 years ago
I see my problem. Even though I read the java API for it before and after you said it, I didn't see my problem because I was confusing the readLine() method with the parse Integer class. So now I have:
Now I also noticed that it needs throws IOException. This is where I'm caught now, and it probably deals with things that I've not touched yet in Head First Java (I'm on page 110), though I did touch on it in my high school course. Anyway, what I'm not sure about is what kind of method I need. For instance, isn't void supposed to return nothing? I've never actually programmed something with a class that does stuff with methods and a testdrive class. That is specifically what I'm trying to accomplish in this simple program; my goal is to have objects talking to objects.
[ May 22, 2006: Message edited by: Daniel Lucas ]
17 years ago
Here's my code:



Here's my error:


What's my problem here? I've tried a number of different things to get rid of the error, but none worked.
17 years ago
What page is this application found in Head First Java ? I have the book, so I'd like to try typing the code in myself and compiling.
17 years ago
Nice! I wish I could do it even with my 2 legs. :roll:
17 years ago
Looks like a nice pen. My favorite pen ever was a stainless steel pen... just pure stainless steel. I enjoyed twirling it with my fingers as a pasttime.
17 years ago
Mani, your car is above average for fuel economy. Personally, I use an ~20 year old Honda Accord. I haven't measured its mpg, but I'm sure it's around 50. It's darned slow too...
17 years ago
Most important use of a computer for me is Java. What I use the computer the most for, however, would probably be playing Counterstrike: Source
17 years ago
I know I'm about 2 months late from the intial post, but by incipient programmers, do you mean newbie programmers or programmers who are struggling with the coursework?

In either case, I think forming some sort of support for programmers is a great idea. I definitely think this kind of program could succeed and you would not be wasting your time; it would, however, need to be carried through properly. If the instructors are voluntary, then you need to determine whether there are enough good programmers to make this effort effective. And of course, make sure the students are aware of support opportunities and that it's accessible.
17 years ago
I strongly agree with you Ilja. People want free will to pursue things on their own. I for one greatly detest my parent's pushing me (I'm graduating high school, about to head off to UMBC majoring in CE and minoring in CS) toward different activities that I've made clear I do not wish to pursue, or to push me to make a good living (at least as good as my older siblings, of whom are an Air Force Captain, a lawyer, and a nurse), and I do backlash against them by not doing my best. Why? Well, it's complicated to say the least. I guess the best answer is lack of intrinsic motivation. It also has to do with what I see as important in my life. Material wealth is not high on my list, I could care less whether I end up bathing in a bathtub or a jacuzzi, living in a 3000 square foot house in a typical suburb or a 6000 square foot house in a wealthy neighborhood.

Intrinsic motivation is a tough concept. I can only speak on personal experience. I'm intrinsically motivated to learn Java (by the way, I love your book Head First Java, Bert Bates/Kathy!). I'm studying on my own at home in my free time because I genuinely find it interesting to program. I mean, it's really fun to learn new, cool stuff to make you a powerful programmer, isn't it?

I'm extrinsically motivated to do well in piano, for instance. My parents and sister push it, but I'm just not interested. I'd rather spend my time learning Java than practicing Bach Preludes and Fugues.

Motivation, unfortunately, only takes you so far. In fact, it might not take you very far at all. Although one might be motivated to do something, he may choose other things instead. I know I do. I really want to get all A's in school and get 4's and 5's on all my AP exams, but I end up putting probably 1/4th the effort into actually accomplishing that goal than I'd like. A more important factor to learning in my opinion is diligence. The whole time reading and writing my post I've been thinking of Thomas Edison's famous quote, "genius is 99 percent perspiration, 1 percent inspiration".

So is motivation important? Yes, I believe so. But once you're motivated to do something, you need the diligence to do it.
[ May 17, 2006: Message edited by: Daniel Lucas ]
17 years ago
Just wondering, what do you mean by a text bow? I'm thinking bow tie, archery bow, a violin bow, the forward part of a ship... the tie to java just isn't clicking right here Unless by bow you mean something curved, which makes me think you want something with a GUI. In that case, yeah JOptionPane boxes are the thing that come to mind.
17 years ago
You probably want J2SE SDK 1.5 Update 6. If you need another version (like enterprise edition), then you're probably advanced enough to know that. Anyway, The .exe is 59.86MB. I do not believe there is a way to download it in zip format. What you could do is download it at home and zip it up there, then transport it to work on a cd, USB jump drive, or other media format. I use winRAR for all my zipping needs. I'm not sure if the free version of winzip will let you zip files. If necessary, I'd be willing to zip the file myself and upload it to you on a client such as AIM, ICQ, MSN, or Yahoo! (I have all of them). My gmail account only lets me send e-mail up to 10MB. If you're interested, e-mail me. My info is in my profile.
17 years ago
I didn't realize that Quicktime did that until you just told me, Jesper Young. I guess it was luck that I managed to solve my problem (yes I did have Quicktime installed).

On the other hand, it is Sun's fault and it isn't Sun's fault that Quicktime screws up their SDK. It isn't Sun's fault because someone else's software conflicts with Sun's, while it is Sun's fault because they did not mention in the installation instructions that this is a common problem and how to fix it.
17 years ago