Rebecca Pickett

Greenhorn
+ Follow
since Aug 16, 2000
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 Rebecca Pickett

Assignment: Java-6 Grains
Attempt: 4
Submitted: 4/23/01
23 years ago

Originally posted by Monty Ireland:
simple to do list:
1. politytool
2. create an odbc dsn entry to us a text file database
3. use jdbc 1.0 open the driver and insert rows...
hope this helps!


Monty,
Am I missing something -- what is "politytool"??
Also, I set up a User DNS connection and I ran your code. Once it attempts to execute the SQL, I'm getting an error which says: "Cannot modify the design of table 'JoltData'. It is in a read-only database." Any ideas? The file itself does not have any special permissions on it.
Thanks,
Rebecca

[This message has been edited by Rebecca Pickett (edited April 11, 2001).]

Originally posted by rick juggler:
Just reading some of the posts has already made me go back and tweak my first two assignments so they won't get nitpicked.


Rick,
In my experience, there is almost always something that is nitpick-able!!
23 years ago

Originally posted by Parag Kale:
Hi!
I found this on one of the mock exams.
After the following code is run, the output is 10,0,20 and that is also supposed the be the right answer. But i think the answer should be 10, 0, 30. Can somebody explain what really happens to the value of v.i, in detail ?


Parag,
You have to walk through it carefully you'll get tripped up. I think here's what's confusing you: When the method amethod() calls the another() method, it is sending a reference to the v (ValHold) object. The first thing another() does is reset i to 20. It is resetting the original object's value since it only passed a reference to the object, not the object itself nor a copy of the object. If you read the Campfire's "Cup Size" essay, you'll see my point. Following that logic through, you'll see that i is really 20 when it is finally printed out at the end of amethod().
[This message has been edited by Rebecca Pickett (edited April 10, 2001).]
23 years ago

Originally posted by James Baud:
Can anyone explain why this prints 1 if f() is private in PolyB, else if public it prints 2?
[/B]


James, This is my take on it -- and I could be wrong. But it's a good basic OOP question.
ref1 is a reference to a PolyC object. ref2 is also a reference to the same PolyC object, but it's being cast to a PolyB. If PolyB.f() is private, that means that PolyC.f() does NOT override PolyB.f() with it's own code since private methods are only accessible inside that class. Thus, when PolyB.f() is private and you call PolyB.f() (however indirectly), it's going to print PolyB.f()'s code. When PolyB.f() is public, it is overridden by the PolyC.f() method when the PolyC object is created. I altered your code to print strings out, which helped me make more sense of it. Take a look:

Everyone, if I'm wrong, let me know!

23 years ago

Originally posted by ryan burgdorfer:
You'll kick yourself after you get it
[/B]


As they say in "So I Married an Ax Murderer", HELLO!! I was doing the correct math yesterday, but I was not getting the correct answer because I was a fool (thinking a variable in the previous case would be set in the next case)!! Sometimes, you need to just not think about something for a little while and the answer will just slap you in the face! Sending my code in for nitpicking now...
Thanks all!
23 years ago
I'm recently back to the Cattle Drive after a long absence, which is why I'm not on the log. But I've been working the last of the Java assignments in the last couple of days. BUT I am s-t-u-c-k on the GeekWatch assignment!! :CONFUSED: I can get the milliseconds part and the today part. But the seconds and days part are what's got me so perplexed. I keep wanting to use the deprecated methods in the Date class, but I read an old post from Paul saying not to... Hints, anyone? Thanks!
23 years ago
Well that makes perfect sense, java portability-wise. Thanks for helping me see the light!
23 years ago
Yep, sure do and that's what I figured it was doing.
I was just surprised that it was compensating for Time Zone and not giving the real "epoch" in GMT.
23 years ago
When I create a new java.util.Date class object with a long parameter, I should get this according to all the documentation I've read:
January 1, 1970, 00:00:00 GMT
BUT, I'm getting December 31, 1969, 18:00:00 CST when I print it out. Is this time-zone compensation normal??
23 years ago
I haven't been around much lately since I'm now learning Java on-the-job instead of by-the-book. BUT when I do have a question I cannot seem to get an answer for in a book or on the Sun documentation website, I come back here to the Moose Saloon and search the most appropriate forum(s) for the answer. I can usually find it, too. The best thing is that my question (which was someone else's question earlier, obviously) is usually answered in plain language with a very simple example. It's a great resource. Thanks!
23 years ago
I found the following on sun's site re: start office's API:

from www.sun.com/products/staroffice/5.2/developer/:

...Here at Sun, we will be working closely with the worldwide developer community to ensure that StarOffice technology delivers the premiere development environment for highly scalable, robust, Web-based office productivity.
Through the new and extensive StarOffice software APIs, developers have access to the underpinnings of a full-featured office productivity suite. The APIs are well documented and can be accessed from many different programming languages. And the StarOffice Software Development Kit is complete with this comprehensive documentation, plus a Programmer's Tutorial featuring code examples and procedures for automating StarOffice applications using StarOffice Basic. This summer, the SDK will begin to feature additional tutorials and documentation for a wide range of innovative development solutions.
Developing solutions for tomorrow.
StarOffice software is being designed with the developer in mind, providing users with the flexibility needed to solve real-world problems. Developers will be able to use a scripting language or a full-fledged programming language like C++ or the Java[tm] language. And they will be able to work through APIs or directly with the source. Either way, StarOffice software will enable office productivity solutions both now and for the future.


It sounds like a great idea to me. I'm anxious to download it and try it out.

Originally posted by sri ralla:
I have heard about this s/w in sun's website. I am thinking its similar to MS-office. could anybody let me know if they are special features in Star office as related to web development.
thanks
vamsi


23 years ago
I'm in the middle of this assignment myself. I think I'm getting too bogged down (I'm going for the extra, extra credit) but I do have some suggestions for you if you're just getting started:
Think in terms of "speech". Remember Paul's example, "nine hundred ninety-nine billion, nine hundred ninety-nine million...". I don't want to go too far in the forum so feel free to email me personally if you would like.

Originally posted by Patel a:
How would i go about writing this program.
please give some guidelines


23 years ago
In all the assignments I've done so far, the following line of code has been the signature of "main":
public static void main ( String[] args )
The question is: Why do you need the incoming string to be in an array? Why can it not just be a plain string, without the array?
23 years ago
I've seen it in the Cattle Drive section.

Originally posted by Paul Wheaton:
Can you refer me to an example? I haven't seen that message since the move.


23 years ago