Win a copy of Rust Web Development this week in the Other Languages forum!

Jon Anslow

Greenhorn
+ Follow
since May 05, 2006
Jon likes ...
Chrome Java Linux
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 Jon Anslow

Hi Jenny,

I have just created a wlfullclient.jar against WebLogic 10.3.5 Using the WebLogic JarBuilder Tool

and it does contain the weblogic.utils.compiler.Tool Class. Can you verify that the Tool Class is present in the wlfullclient.jar that you have?

You mention you do not have WebLogic installed so to try and establish the version of WebLogic that the wlfullclient.jar you have was created against you could check the MANIFEST.MF file to see the version against the Implementation-Version. An example snippet below:

Implementation-Version: 10.3.5.0

For further info - The individual JAR that contains the Tool Class in the version of WebLogic I am using is in WL_INSTALLATION_DIRECTORY/modules/com.bea.core.utils.full_1.9.0.1.jar and the contents of this JAR should get pulled into the wlfullclient.jar.

The stacktrace you posted also refers to appc? Are you trying to compile something using the appc tool


Jon
9 years ago
Hi Harivenkatesh,

I'm familiar with the head first java book and it is well worth getting if you are starting out in learning Java.

With regards to the head first java with magnets. Reading this online review:

Head First Code Magnet Kit

Suggests that it contains only magnets and does not come with the head first java book. The magnets are to to aid you to do some of the activities that are contained in the head first java book but are not compulsory to buy as you can do the appropriate exercises without the physical magnets.

Jon
9 years ago
Hi nickyt,

There is a method in your Circle class that sets the radius and accepts a double as its argument. You could pass the radius entered by the user (that you have stored in a variable called getRadius) into this method of the Circle class.

Jon
9 years ago
Hi,

I still need my servlets moose hanging up please?

Jon
13 years ago

Originally posted by James Hambrick:
if size or name was static then they would not be instance variables but merely variables.



Just to confirm, if size and name were static then they would be known as Class variables and would be accessed via the class name. A reference of the Dog Class would not need to be created to use them.

eg:
14 years ago
Hi Chris,

The cattle drive does go into using MVC2 in later assignments but not MVC. Have a look here to read on what the assignment entails.Cattle Drive - Servlets

Regards,
Jon
14 years ago
Hey Katrina,

Yes, I added some logic in my videologin.jsp to check for a null String.

However, the instructors solution showed a more elegant solution to check for this.

Check out Javaranch Code API to find a class you may have used on a previous assignment that contains a method that does what you need.

Regards,
Jon
14 years ago
Hi Viv,



your first if statment is using the > (greater than operator) and is checking "is current value of z variable greater than 2" z is currently 3 so it is true. Code in if statment will be executed.



The while loop will be executed until the test condition is false. Again, the condition here is using the > operator.

The other operator used in your code is == which is testing is z int value equal to another int value.

I hope these explanations help you look over your code, to understand the logic and what is happening.

Regards,
Jon
14 years ago
Hi prasanna,



I noticed you are creating an Integer object here. One tip that may prove useful would be to use the Integer.parseInt() method. This would save you creating this Integer object as it is not in use in the rest of your code. eg:


Hope this is useful,
Jon
14 years ago
Apoligies, Steve. I forgot to mention that the StringBuilder Class is part of Java 5. If you are using an earlier version, the StringBuffer Class could be used.

Regards,
Jon
14 years ago
Hi Steve,

The StringBuilder Class may assist you in adding zeros to the String you wish to pad out:



You may want to put the append() method call in a loop, to keep on appending zeros to the StringBuilder object until you reach your desired padded length. Once complete, calling the paddedString.toString() method will give you a padded String object.

Regards,
Jon
[ July 16, 2007: Message edited by: Jon Anslow ]
14 years ago
Nice post, Katrina. My experience of the cattle drive have also been productive and an enjoyable learning experience, which I try to encompass in my coding at work and also in my studies. Some of the feedback I have received from my tutor from assignment work outside of the cattledrive are 'clear code', 'easy to read' and this has come from taking part in the drive. As a newbie into programming it has helped me gain a mindset early on how it is important to maintain readability of code, not only for myself when I come to look at my code a few months later on, but also for the fellow coders looking at my work in the future.

Even from the first assignment, I learnt something (array de-referencing), I think, like fellow cattle drivers I thought I had submitted the perfect first assignment until I received that nitpick! But this lesson helped me to understand and to sometimes rethink that although my code is doing as expected, is it as efficient as it could be?

I am glad I have been fortunate enough to learn these valuable lessons at the start part of my programming career

Jon
14 years ago
Thanks, Marilyn

Jon
14 years ago
Hi,

I will be back on the trail from the end of this week . I have noticed though that I am missing my servlets moose head on the hall of fame

Can someone hang it up for me?

Thanks,
Jon
14 years ago
Congrats Katrina

I've been off my saddle for a while but shall be mounting back up by the end of the week to resume on the trail.

Jon
14 years ago