Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp

Adrienne Peck

Greenhorn
+ Follow
since Jul 10, 2006
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 Adrienne Peck

Is there a place that contains the most up-to-date API listing? With a good explanation of the function of each class?

Frequently, I write actual code to perform tasks that I later find out had a class to perform that very same function for me. I try to find a class but, all too often, am not able to find it. I believe my search methods are flawed.

Any suggestions?
12 years ago
Hello!

I have submitted my code for nitpicking.

Thanks!
12 years ago
Hmmm...there seems to be something else missing because I do have that file. Does it matter where the file is located on the C rive? The version of software I have is jdk 1.4 so the javac.exe file is the same.

Probably something small that I'm doing wrong. I did have to download the software offline. I wonder if that %USERPROFILE% thingey is causing problems?

Following Andrew's reply, I set the %USERPROFILE%. I set this profile in the Documents and Settings directory on the C: drive. My software is on another directory. Would that make a difference?
12 years ago
I created the HelloWorld.java file as a notepad file and saved it on a directory on my c: drive called 'javastuff'. I was unsuccessful at compiling the program.

Here is a paste of the console information:

C:\javastuff>dir
Volume in drive C is Local Disk
Volume Serial Number is 6854-2E5E

Directory of C:\javastuff

09/19/2006 02:05p <DIR> .
09/19/2006 02:05p <DIR> ..
09/19/2006 02:05p 154 HelloWorld.java
1 File(s) 154 bytes
2 Dir(s) 7,402,915,840 bytes free

C:\javastuff>javac HelloWorld.java
'javac' is not recognized as an internal or external command,
operable program or batch file.

Please advise. Thank-you.
12 years ago
Thanks for the information. I am installing 1.4. Not sure why this is a problem but I'm sure it will all eventually smooth out.
12 years ago
The preparation section of the cattleDrive has te CLASSPATH set to .;C\JAVA.

The note in this section states to 'notice the dot before the first semicolon'. Not sure what this means. Please clarify.

Thank-you
12 years ago
I am in the process getting set-up for Cattle Drive. I have hit a bit of a snag with the download. I am getting the following error message:

'Error code 1606 - could not access network location %USERPROFILE%\'.

Not sure how to proceed from here. Would someone please advise.

Thank-you.
12 years ago
JMS
Thanks!
12 years ago
JMS
I am interviewing for a position that has JMS as a requirement. I have not been able to find the definition for this. And I certainly didn't have it on my resume! Does anyone know what JMS is? Where can I go to find a definition for java acronyms?
12 years ago
i'm working with a class (class a) that has code with constructors and methods (code x). these same constructors and methods are in another class (class b). i was told to invoke class b so that class invokes class b instead of running code x.

my cobol days taught me how to call one program from another program. i'm not sure of the syntax to invoke one class from another class.
12 years ago
Hey, thanks...it worked. I've learned two lessons today - how to code and how to format better.
12 years ago
thanks for the help! that makes sense. i made the change but am getting a message that states 'invalid argument to operation' with this code:

(bpt.Current_Billing_Year_2) = (Integer.toString(++(Integer.parseInt(bpt.Current_Billing_Year_2))))

the left side of the equation is a string. when i parse it to be an integer, i get an error saying the left-hand side must be a variable. i think i'm missing something basic here...

wouldn't '(bpt.Current_Billing_Year_2)' be considered a variable?
why would i still get 'invalid argument to operation' error when i am incrementing the parsed integer value and not the string?
12 years ago
hope the saloon hands are not tired of my math questions...

i have a string that needs to be incremented by one. i am getting compiler errors with this code:
bpt.Current_Billing_Year_2 = (++Integer.toString(Integer.parseInt(bpt.Current_Billing_Year_2)));

actually, i have put the increment signs (++) in every place on the right side of the equation that is possible. each generates a compiler error.
of course it doesn't work to increment the string so my question is...what in the world do i increment?
12 years ago
also, what is the difference between the following:

Integer.parseInt((bpt.Current_Billing_Period_2).valueOf(1)) +=1
and
Integer.parseInt((bpt.Current_Billing_Period_2).valueOf(1))++
12 years ago